Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omesser committed Feb 19, 2024
1 parent 4eea67b commit 3589c2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# please keep this to a minimum - defaults are good
[tool.black]
exclude = '''
/(
^/( # anchor to the root
( # exclude these directories
\.git
| \.venv
| \venv
)/
| \.venv
| venv
)/
)
'''
12 changes: 6 additions & 6 deletions tests/integration/cases/shell_commands/test_shell_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ def test_run_verify_md5(self):
self.assertEqual('4a738101122b28baae05fac7a5dc6b32', run_md5)

# run again and make ensure md5 has changed due to "--dummy" value change
yield self._manof_command('run', ['--dummy', 'else', target_name])
yield self._manof_command('run', ['--dummy', 'value', target_name])
command_sha = yield manof.utils.get_running_container_label(
target_name, label_name, self._logger
)
run_md5, _, _ = yield self._manof_command(
'run', ['--print-run-md5-only', '--dummy', 'else', target_name]
'run', ['--print-run-md5-only', '--dummy', 'value', target_name]
)
self.assertEqual('a3ada1db9e167a8a747c8ddd4de63757', command_sha)
self.assertEqual('a3ada1db9e167a8a747c8ddd4de63757', run_md5)

# different dummy data yields different run md5
run_md5, _, _ = yield self._manof_command(
'run', ['--print-run-md5-only', '--dummy', 'else2', target_name]
'run', ['--print-run-md5-only', '--dummy', 'value2', target_name]
)
self.assertNotEqual(run_md5, command_sha)

Expand Down Expand Up @@ -91,7 +91,7 @@ def test_run_verify_md5(self):
self.assertNotEqual(run_md5, command_sha)

@defer.inlineCallbacks
def test_images_run_and_rm(self):
def test_image_run_and_rm(self):
self._logger.info('Testing run command happy flow')

for image_name in ['test_image', 'test_image2']:
Expand Down Expand Up @@ -127,7 +127,7 @@ def test_images_run_and_rm(self):
)

@defer.inlineCallbacks
def test_images_provision(self):
def test_image_provision(self):
self._logger.info('Testing provision images happy flow')

for image_name, class_name in [
Expand All @@ -152,7 +152,7 @@ def test_images_provision(self):
)

@defer.inlineCallbacks
def test_images_lift(self):
def test_image_lift(self):
self._logger.info('Testing provision images happy flow')

for image_name, class_name in [
Expand Down

0 comments on commit 3589c2a

Please sign in to comment.