Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Mar 28, 2024
1 parent 93edcb9 commit e91bad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapshot_manager/snapshot_manager/snapshot_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def check_todays_builds(self):

def watch_testing_farm_request(
self, request_id: str
) -> tuple[util.TestingFarmWatchResult, str]:
) -> tuple[tf.TestingFarmWatchResult, str]:
request_id = tf.sanitize_request_id(request_id=request_id)
cmd = f"testing-farm watch --no-wait --id {request_id}"
exit_code, stdout, stderr = util.run_cmd(cmd=cmd)
Expand Down
2 changes: 1 addition & 1 deletion snapshot_manager/snapshot_manager/testing_farm_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def parse_for_watch_result(string: str) -> tuple[TestingFarmWatchResult, str]:
... LTk1ZmUtNTY3Y2M5ZDYyYWQ0CuKdjCB0ZXN0cyBlcnJvcgpOb25lCg=='''
>>> import base64
>>> s = base64.b64decode(s).decode()
>>> get_testing_farm_watch_result(s)
>>> parse_for_watch_result(s)
(<TestingFarmWatchResult.TESTS_ERROR: 'tests error'>, 'http://artifacts.osci.redhat.com/testing-farm/271a79e8-fc9a-4e1d-95fe-567cc9d62ad4')
"""
string = clean_testing_farm_output(string)
Expand Down

0 comments on commit e91bad2

Please sign in to comment.