summaryrefslogtreecommitdiff
path: root/tests/project/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/project/project.py')
-rw-r--r--tests/project/project.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/project/project.py b/tests/project/project.py
index 3a1484309..2505431d8 100644
--- a/tests/project/project.py
+++ b/tests/project/project.py
@@ -16,7 +16,7 @@ def test_missing_project_conf(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename)
with pytest.raises(LoadError) as exc:
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
assert (exc.value.reason == LoadErrorReason.MISSING_FILE)
@@ -26,7 +26,7 @@ def test_missing_project_name(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename, "missingname")
with pytest.raises(LoadError) as exc:
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
assert (exc.value.reason == LoadErrorReason.INVALID_DATA)
@@ -35,7 +35,7 @@ def test_missing_project_name(datafiles):
def test_load_basic_project(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename, "basic")
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
# User provided
assert (project.name == "pony")
@@ -50,7 +50,7 @@ def test_load_basic_project(datafiles):
def test_override_project_path(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename, "overridepath")
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
# Test the override
assert (project._environment['PATH'] == "/bin:/sbin")
@@ -60,7 +60,7 @@ def test_override_project_path(datafiles):
def test_project_alias(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename, "alias")
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
# Test the override
assert (project.translate_url('baserock:foo') == 'git://git.baserock.org/baserock/foo')
@@ -72,6 +72,6 @@ def test_project_unsupported(datafiles):
directory = os.path.join(datafiles.dirname, datafiles.basename, "unsupported")
with pytest.raises(LoadError) as exc:
- project = Project(directory, Context([]))
+ project = Project(directory, Context())
assert (exc.value.reason == LoadErrorReason.UNSUPPORTED_PROJECT)