Skip to content

Commit

Permalink
Fixed line lengths.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Sep 5, 2024
1 parent 649b9ff commit b0e5842
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/unit_tests/steps/test_archive_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def test_for_exes(self):

# ensure the correct artefacts were created
assert config.artefact_store[ArtefactSet.OBJECT_ARCHIVES] == {
target: set([str(config.build_output / f'{target}.a')]) for target in targets}
target: set([str(config.build_output / f'{target}.a')])
for target in targets}

def test_for_library(self):
'''As used when building an object archive or archiving before linking
Expand All @@ -65,12 +66,15 @@ def test_for_library(self):
mock_result = mock.Mock(returncode=0, return_value=123)
with mock.patch('fab.tools.tool.subprocess.run',
return_value=mock_result) as mock_run_command, \
pytest.warns(UserWarning, match="_metric_send_conn not set, cannot send metrics"):
archive_objects(config=config, output_fpath=config.build_output / 'mylib.a')
pytest.warns(UserWarning, match="_metric_send_conn not set, "
"cannot send metrics"):
archive_objects(config=config,
output_fpath=config.build_output / 'mylib.a')

# ensure the correct command line calls were made
mock_run_command.assert_called_once_with([
'ar', 'cr', str(config.build_output / 'mylib.a'), 'util1.o', 'util2.o'],
'ar', 'cr', str(config.build_output / 'mylib.a'), 'util1.o',
'util2.o'],
capture_output=True, env=None, cwd=None, check=False)

# ensure the correct artefacts were created
Expand Down

0 comments on commit b0e5842

Please sign in to comment.