# Path: wtframework/wtf/_devtools_/filetemplates/_default_yaml_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_root_folder_placeholder_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_runtests_py_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_examples_.py



from optparse import OptionParser
from wtframework.wtf._devtools_.filetemplates import _default_yaml_, \
    _root_folder_placeholder_, _runtests_py_, _examples_
import os.path
import wtframework
    #create tests dir
    ensure_dir(os.path.join(project_dir,"tests"))
    create_file(os.path.join(project_dir,"tests", "__init__.py"), "'Top level tests folder.  Organize your items in the subfolders below.'")
    ensure_dir(os.path.join(project_dir,"tests", "flows"))
    create_file(os.path.join(project_dir,"tests", "flows", "__init__.py"), "'Put reusable multi-page flows here.'")
    ensure_dir(os.path.join(project_dir,"tests", "models"))
    create_file(os.path.join(project_dir,"tests", "models", "__init__.py"), "'Put models like database abstractions here.'")
    ensure_dir(os.path.join(project_dir,"tests", "pages"))
    create_file(os.path.join(project_dir,"tests", "pages", "__init__.py"), "'Put your PageObjects here.'")
    ensure_dir(os.path.join(project_dir,"tests", "support"))
    create_file(os.path.join(project_dir,"tests", "support", "__init__.py"), "Put various utility functions you want to reuse here.'")
    ensure_dir(os.path.join(project_dir,"tests", "testdata"))
    create_file(os.path.join(project_dir,"tests", "testdata", "__init__.py"), "'Put reuseable functions for generating and handling test data here.'")
    ensure_dir(os.path.join(project_dir,"tests", "tests"))
    create_file(os.path.join(project_dir,"tests", "tests", "__init__.py"), "'Put your high level tests here.'")

    create_file(os.path.join(project_dir,"requirements.txt"), """
# Requirements.txt file
# This file contains a list of packages to be installed by PIP
# when setting up this project.

# Wiredrive Test Framework - WTF
wtframework=={version}

    """.format(version=wtframework.__VERSION__))

    if options.examples == True:
        print("Generating example files.")

        for key in _examples_.examples.keys():

# Path: wtframework/wtf/_devtools_/filetemplates/_default_yaml_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_root_folder_placeholder_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_runtests_py_.py

# 
# Path: wtframework/wtf/_devtools_/filetemplates/_examples_.py



# Path: bin/wtf_init.py
from optparse import OptionParser
from wtframework.wtf._devtools_.filetemplates import _default_yaml_, \
    _root_folder_placeholder_, _runtests_py_, _examples_
import os.path
import wtframework

    #create tests dir
    ensure_dir(os.path.join(project_dir,"tests"))
    create_file(os.path.join(project_dir,"tests", "__init__.py"), "'Top level tests folder.  Organize your items in the subfolders below.'")
    ensure_dir(os.path.join(project_dir,"tests", "flows"))
    create_file(os.path.join(project_dir,"tests", "flows", "__init__.py"), "'Put reusable multi-page flows here.'")
    ensure_dir(os.path.join(project_dir,"tests", "models"))
    create_file(os.path.join(project_dir,"tests", "models", "__init__.py"), "'Put models like database abstractions here.'")
    ensure_dir(os.path.join(project_dir,"tests", "pages"))
    create_file(os.path.join(project_dir,"tests", "pages", "__init__.py"), "'Put your PageObjects here.'")
    ensure_dir(os.path.join(project_dir,"tests", "support"))
    create_file(os.path.join(project_dir,"tests", "support", "__init__.py"), "Put various utility functions you want to reuse here.'")
    ensure_dir(os.path.join(project_dir,"tests", "testdata"))
    create_file(os.path.join(project_dir,"tests", "testdata", "__init__.py"), "'Put reuseable functions for generating and handling test data here.'")
    ensure_dir(os.path.join(project_dir,"tests", "tests"))
    create_file(os.path.join(project_dir,"tests", "tests", "__init__.py"), "'Put your high level tests here.'")

    create_file(os.path.join(project_dir,"requirements.txt"), """
# Requirements.txt file
# This file contains a list of packages to be installed by PIP
# when setting up this project.

# Wiredrive Test Framework - WTF
wtframework=={version}

    """.format(version=wtframework.__VERSION__))

    if options.examples == True:
        print("Generating example files.")

        for key in _examples_.examples.keys():

            create_file( os.path.join(project_dir,key), _examples_.examples[key], overwrite=True)