diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-02 17:14:44 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-05 09:44:45 +0000 |
commit | cfbab5fe76f8011bc8b6b895b2d3bfff4ea167b3 (patch) | |
tree | 51abb49a04c9797e7def9c8929e8f427037c61ed /tests/artifactcache/push.py | |
parent | b60fffebf563edfe258cbb893754197af1ac5a0b (diff) | |
download | buildstream-cfbab5fe76f8011bc8b6b895b2d3bfff4ea167b3.tar.gz |
Refactor, use context.messenger directly
Instead of having methods in Context forward calls on to the Messenger,
have folks call the Messenger directly. Remove the forwarding methods in
Context.
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r-- | tests/artifactcache/push.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index 996091fca..a54c1df09 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -71,7 +71,7 @@ def test_push(cli, tmpdir, datafiles): # Fake minimal context context = Context() context.load(config=user_config_file) - context.set_message_handler(message_handler) + context.messenger.set_message_handler(message_handler) # Load the project manually project = Project(project_dir, context) @@ -108,7 +108,7 @@ def _test_push(user_config_file, project_dir, element_name, queue): # Fake minimal context context = Context() context.load(config=user_config_file) - context.set_message_handler(message_handler) + context.messenger.set_message_handler(message_handler) # Load the project manually project = Project(project_dir, context) @@ -194,7 +194,7 @@ def _test_push_message(user_config_file, project_dir, queue): # Fake minimal context context = Context() context.load(config=user_config_file) - context.set_message_handler(message_handler) + context.messenger.set_message_handler(message_handler) # Load the project manually project = Project(project_dir, context) |