Exemplo n.º 1
0
def test_django_default_project_of_file(Script):
    project = get_default_project(__file__)
    d = os.path.dirname
    assert project._path == d(d(d(__file__)))
Exemplo n.º 2
0
def test_added_sys_path(inference_state):
    project = get_default_project()
    p = '/some_random_path'
    project.added_sys_path = [p]
    assert p in project._get_sys_path(inference_state)
Exemplo n.º 3
0
def test_django_default_project_of_file(Script):
    project = get_default_project(__file__)
    assert project._path == Path(__file__).parent.parent.parent