def test_scaffold(self):
     generate_docs(self.BASE_DIR)
     self.assertTrue(os.path.exists(os.path.join(self.BASE_DIR, 'docs')))
     self.assertTrue(
         os.path.exists(os.path.join(self.BASE_DIR, 'docs', 'styling.md')))
     self.assertTrue(
         os.path.exists(os.path.join(self.BASE_DIR, 'docs', 'scaffold.md')))
Example #2
0
def bootstrap(directory):
    config = get_config(directory)
    # Create Version File
    version_file = os.path.join(config.get("MCConfig", "version_directory"), config.get("MCConfig", "version_file"))
    if not os.path.isfile(version_file):
        with open(version_file, 'w') as vf:
            vf.write(_version_number)
    if config.get("MCConfig", "separate_internal_apps"):
        internal_apps_file = os.path.join(config.get("MCConfig", "settings_folder"), "installed_apps.py")
        if not os.path.isfile(internal_apps_file):
            with open(internal_apps_file, 'w') as iaf:
                iaf.write(_installed_apps)
    change_file = os.path.join(config.get("MCConfig", 'changelog_directory'), config.get("MCConfig", 'changelog_name'))
    if not os.path.isfile(change_file):
        with open(change_file, 'w') as clf:
            clf.write(_change_log)
    if not os.path.isfile(os.path.join(directory, 'docs', 'mc_commands.md')):
        generate_docs(directory)
Example #3
0
def bootstrap(directory):
    config = get_config(directory)
    # Create Version File
    version_file = os.path.join(config.get("MCConfig", "version_directory"), config.get("MCConfig", "version_file"))
    if not os.path.isfile(version_file):
        with open(version_file, "w") as vf:
            vf.write(_version_number)
    if config.get("MCConfig", "separate_internal_apps"):
        internal_apps_file = os.path.join(config.get("MCConfig", "settings_folder"), "installed_apps.py")
        if not os.path.isfile(internal_apps_file):
            with open(internal_apps_file, "w") as iaf:
                iaf.write(_installed_apps)
    change_file = os.path.join(config.get("MCConfig", "changelog_directory"), config.get("MCConfig", "changelog_name"))
    if not os.path.isfile(change_file):
        with open(change_file, "w") as clf:
            clf.write(_change_log)
    if not os.path.isfile(os.path.join(directory, "docs", "mc_commands.md")):
        generate_docs(directory)
 def test_scaffold(self):
     generate_docs(self.BASE_DIR)
     self.assertTrue(os.path.exists(os.path.join(self.BASE_DIR, 'docs')))
     self.assertTrue(os.path.exists(os.path.join(self.BASE_DIR, 'docs', 'styling.md')))
     self.assertTrue(os.path.exists(os.path.join(self.BASE_DIR, 'docs', 'scaffold.md')))