예제 #1
0
def main():
    try:
        # Creates all of the project folders we need
        projectfolders.create_folders(args.project[0], target_dir)
        # Creates all of the project files we need
        projectfiles.create_files(args.project[0], target_dir)
    except IOError as e:
        print(e)
예제 #2
0
def main():
    try:
        projectfolders.create_folders(
            args.project[0],
            cur_dir)  #Creates all of the project folders we need
        projectfiles.create_files(
            args.project[0],
            cur_dir)  #Creates all of the project files we need
    except IOError as e:
        print(e.strerror)
예제 #3
0
def test_create_all_files():
    """Bring all of the individual file tests together under one roof..."""
    project_name = "mongodb-is-webscale-webscale-i-tells-ya"
    projectfolders.create_folders(project_name, target_dir) #Create the project folders
    project_root = projectfolders.create_path(target_dir, project_name)
    projectfiles.create_files(project_name, target_dir) #Oh snap, notice how we're using target_dir? This method creates a project root internally.
    
    assert_file_exists(project_root, "tests", "__init__.py")
    assert_file_exists(project_root, project_name, "__init__.py")
    assert_file_exists(project_root, "tests", "%s_tests.py" % project_name)
    assert_file_exists(project_root, None, "setup.py")
예제 #4
0
def test_create_all_files():
    """Bring all of the individual file tests together under one roof..."""
    project_name = "mongodb-is-webscale-webscale-i-tells-ya"
    projectfolders.create_folders(project_name, target_dir) #Create the project folders
    project_root = projectfolders.create_path(target_dir, project_name)
    projectfiles.create_files(project_name, target_dir) #Oh snap, notice how we're using target_dir? This method creates a project root internally.
    
    assert_file_exists(project_root, "tests", "__init__.py")
    assert_file_exists(project_root, project_name, "__init__.py")
    assert_file_exists(project_root, "tests", "{project_name}_tests.py".format(project_name=project_name))
    assert_file_exists(project_root, None, "setup.py")
예제 #5
0
def test_create_all_files():
    '''Bring all of the individual file tests together under one roof...'''
    project_name = 'mongodb-is-webscale-webscale-i-tells-ya'
    # Create the project folders
    projectfolders.create_folders(project_name, test_dir)
    project_root = projectfolders.create_path(test_dir, project_name)
    # Oh snap, notice how we're using test_dir? This method creates a
    # project root internally.
    projectfiles.create_files(project_name, test_dir)

    assert_file_exists(project_root, 'tests', '__init__.py')
    assert_file_exists(project_root, project_name, '__init__.py')
    assert_file_exists(project_root, None, 'setup.py')
예제 #6
0
def main():
    try:
        projectfolders.create_folders(args.project[0], cur_dir) #Creates all of the project folders we need
        projectfiles.create_files(args.project[0], cur_dir) #Creates all of the project files we need
    except IOError as e:
        print(e.strerror)