def test_django_default_project_of_file(Script): project = get_default_project(__file__) d = os.path.dirname assert project._path == d(d(d(__file__)))
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)
def test_django_default_project_of_file(Script): project = get_default_project(__file__) assert project._path == Path(__file__).parent.parent.parent