diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-14 23:12:06 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-14 23:12:06 +0900 |
commit | 2e1082008c9f06c09b7037880ff72a25afde79f5 (patch) | |
tree | 003c94acc184c22d17aa7f3ec2c3f905f4efdf45 /tests/context | |
parent | 7fc7f67c2befdf78c12c691081cb6393c99ac27e (diff) | |
download | buildstream-2e1082008c9f06c09b7037880ff72a25afde79f5.tar.gz |
Rename InvocationContext -> Context
It's a bit big and wordy, looks like it makes sense to
just call it "Context".
Diffstat (limited to 'tests/context')
-rw-r--r-- | tests/context/context.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/context/context.py b/tests/context/context.py index 371dd36f7..f8d5e2292 100644 --- a/tests/context/context.py +++ b/tests/context/context.py @@ -1,7 +1,7 @@ import os import pytest -from buildstream import InvocationContext +from buildstream import Context from buildstream import ContextError DATA_DIR = os.path.join( @@ -14,7 +14,7 @@ DATA_DIR = os.path.join( @pytest.fixture() def context_fixture(): return { - 'context' : InvocationContext('x86_64') + 'context' : Context('x86_64') } ####################################### @@ -22,7 +22,7 @@ def context_fixture(): ####################################### def test_context_create(context_fixture): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) assert(context.arch == 'x86_64') ####################################### @@ -30,7 +30,7 @@ def test_context_create(context_fixture): ####################################### def test_context_load(context_fixture): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) context.load() assert(context.sourcedir == '~/buildstream/sources') @@ -44,7 +44,7 @@ def test_context_load(context_fixture): @pytest.mark.datafiles(os.path.join(DATA_DIR)) def test_context_load_user_config(context_fixture, datafiles): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) conf_file = os.path.join(datafiles.dirname, datafiles.basename, @@ -64,7 +64,7 @@ def test_context_load_user_config(context_fixture, datafiles): @pytest.mark.datafiles(os.path.join(DATA_DIR)) def test_context_load_missing_config(context_fixture, datafiles): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) conf_file = os.path.join(datafiles.dirname, datafiles.basename, @@ -76,7 +76,7 @@ def test_context_load_missing_config(context_fixture, datafiles): @pytest.mark.datafiles(os.path.join(DATA_DIR)) def test_context_load_malformed_config(context_fixture, datafiles): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) conf_file = os.path.join(datafiles.dirname, datafiles.basename, @@ -88,7 +88,7 @@ def test_context_load_malformed_config(context_fixture, datafiles): @pytest.mark.datafiles(os.path.join(DATA_DIR)) def test_context_load_notdict_config(context_fixture, datafiles): context = context_fixture['context'] - assert(isinstance(context, InvocationContext)) + assert(isinstance(context, Context)) conf_file = os.path.join(datafiles.dirname, datafiles.basename, |