File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def test_representation(self):
20
20
"""Test that child emulators are represented correctly."""
21
21
self .assertEqual (
22
22
repr (ChildEmulator (id = f"octue/emulated-child:{ MOCK_SERVICE_REVISION_TAG } " )),
23
- "<ChildEmulator('octue/emulated-child:2.3.0 ')>" ,
23
+ f "<ChildEmulator('octue/emulated-child:{ MOCK_SERVICE_REVISION_TAG } ')>" ,
24
24
)
25
25
26
26
def test_ask_with_non_dictionary_message (self ):
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def test_representation(self):
25
25
backend = {"name" : "GCPPubSubBackend" , "project_name" : "blah" },
26
26
)
27
27
),
28
- "<Child('octue/my-child:2.3.0 ')>" ,
28
+ f "<Child('octue/my-child:{ MOCK_SERVICE_REVISION_TAG } ')>" ,
29
29
)
30
30
31
31
def test_instantiating_child_without_credentials (self ):
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def test_instantiate_runner(self):
42
42
def test_repr (self ):
43
43
"""Test that runners are represented as a string correctly."""
44
44
runner = Runner (app_src = "." , twine = "{}" , service_id = f"octue/my-service:{ MOCK_SERVICE_REVISION_TAG } " )
45
- self .assertEqual (repr (runner ), "<Runner('octue/my-service:2.3.0 ')>" )
45
+ self .assertEqual (repr (runner ), f "<Runner('octue/my-service:{ MOCK_SERVICE_REVISION_TAG } ')>" )
46
46
47
47
def test_run_with_configuration_passes (self ):
48
48
"""Ensures that runs can be made with configuration only"""
@@ -394,7 +394,8 @@ def app(analysis):
394
394
self .assertEqual (questions [1 ]["messages" ][1 ]["exception_type" ], "ValueError" )
395
395
self .assertEqual (
396
396
questions [1 ]["messages" ][1 ]["exception_message" ],
397
- "Error in <MockService('octue/yet-another-child:2.3.0')>: Deliberately raised for testing." ,
397
+ f"Error in <MockService('octue/yet-another-child:{ MOCK_SERVICE_REVISION_TAG } ')>: Deliberately raised for "
398
+ f"testing." ,
398
399
)
399
400
400
401
def test_set_up_periodic_monitor_messages (self ):
You can’t perform that action at this time.
0 commit comments