diff --git a/bodhi-client/pyproject.toml b/bodhi-client/pyproject.toml index 611f24144e..a91beae078 100644 --- a/bodhi-client/pyproject.toml +++ b/bodhi-client/pyproject.toml @@ -33,6 +33,9 @@ include = [ ] exclude = ["docs/_build"] +[tool.poetry.build] +generate-setup-file = true + [tool.poetry.dev-dependencies] Sphinx = ">=3.4.3" pytest = ">=6.0.0" diff --git a/bodhi-messages/pyproject.toml b/bodhi-messages/pyproject.toml index 2e48649d7b..5ffbc90858 100644 --- a/bodhi-messages/pyproject.toml +++ b/bodhi-messages/pyproject.toml @@ -33,6 +33,9 @@ include = [ { path = "COPYING", format = "sdist" } ] +[tool.poetry.build] +generate-setup-file = true + [tool.poetry.dependencies] python = ">=3.8, <4" fedora-messaging = ">=3.0.0" diff --git a/bodhi-server/pyproject.toml b/bodhi-server/pyproject.toml index 9e89138e57..d6c203c2c7 100644 --- a/bodhi-server/pyproject.toml +++ b/bodhi-server/pyproject.toml @@ -66,6 +66,9 @@ exclude = [ { path = "docs/_build", format = "sdist" } ] +[tool.poetry.build] +generate-setup-file = true + [tool.poetry.dev-dependencies] bodhi-messages = {path = "../bodhi-messages"} pytest = ">=6.2.2" diff --git a/bodhi-server/tests/consumers/test_signed.py b/bodhi-server/tests/consumers/test_signed.py index 598ab902cc..449e104ac1 100644 --- a/bodhi-server/tests/consumers/test_signed.py +++ b/bodhi-server/tests/consumers/test_signed.py @@ -325,4 +325,4 @@ def test_consume_from_tag_composed_by_bodhi(self, add_tag): assert update.status == UpdateStatus.pending assert update.pushed is False assert update.test_gating_status == TestGatingStatus.passed - assert add_tag.not_called() + add_tag.assert_not_called() diff --git a/bodhi-server/tests/tasks/test_approve_testing.py b/bodhi-server/tests/tasks/test_approve_testing.py index 165c345be7..b50cb26357 100644 --- a/bodhi-server/tests/tasks/test_approve_testing.py +++ b/bodhi-server/tests/tasks/test_approve_testing.py @@ -701,7 +701,7 @@ def test_autotime_update_zero_day_in_testing_no_gated_gets_pushed_to_rawhide( assert add_tag.call_args_list == \ [call('f17-updates')] - assert delete_tag.not_called() + delete_tag.assert_not_called() else: assert remove_tag.call_args_list == \ [call(f'{from_side_tag}-signing-pending'), diff --git a/bodhi-server/tests/tasks/test_composer.py b/bodhi-server/tests/tasks/test_composer.py index dcc056a8f9..922326e344 100644 --- a/bodhi-server/tests/tasks/test_composer.py +++ b/bodhi-server/tests/tasks/test_composer.py @@ -3380,9 +3380,9 @@ def test_stable_update(self, delete_tag, from_side_tag): assert (now - update.date_pushed) < datetime.timedelta(seconds=5) assert update.pushed if from_side_tag: - assert delete_tag.called_with('f34-build-side-0000') + delete_tag.assert_called_with('f34-build-side-0000') else: - assert delete_tag.not_called() + delete_tag.assert_not_called() def test_testing_update(self): """Assert that a testing update gets the right status.""" diff --git a/bodhi-server/tests/test_validators.py b/bodhi-server/tests/test_validators.py index 446d74a551..dbb019a782 100644 --- a/bodhi-server/tests/test_validators.py +++ b/bodhi-server/tests/test_validators.py @@ -268,7 +268,9 @@ def test_validate_acls_pagure_committers_exception(self, warning, mock_gpcfp, mo assert len(mock_request.errors) == 0 mock_access.assert_called_once() mock_gpcfp.assert_called_once() - warning.called_once_with('Unable to retrieve committers list from Pagure for bodhi.') + warning.assert_called_once_with( + 'Unable to retrieve committers list from Pagure for bodhi.' + ) @mock.patch.dict('bodhi.server.validators.config', {'acl_system': 'dummy'}) def test_validate_acls_dummy(self):