diff --git a/.packit.yaml b/.packit.yaml index d4e0c60..9eedc7e 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -36,8 +36,6 @@ srpm_build_deps: - python3-hatch-vcs jobs: - - job: sync_from_downstream - trigger: commit - job: propose_downstream trigger: release dist_git_branches: diff --git a/Dockerfile.tests b/Dockerfile.tests index bd07717..7899ae4 100644 --- a/Dockerfile.tests +++ b/Dockerfile.tests @@ -1,7 +1,7 @@ # Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT -FROM fedora:34 +FROM fedora:latest RUN dnf -y install \ make \ diff --git a/tests/test_request_response.py b/tests/test_request_response.py index c21d253..03b1f6d 100644 --- a/tests/test_request_response.py +++ b/tests/test_request_response.py @@ -30,7 +30,7 @@ def testRawCall(self): """ Test if is class is able to explicitly write and read request handling """ - # example.com domain is not acceptig POST requests anymore + # example.com domain is not accepting POST requests anymore # using stg.packit.dev instead keys = [ "https://stg.packit.dev/api/webhooks/github", @@ -41,10 +41,12 @@ def testRawCall(self): response_after = sess.read() self.assertIsInstance(response_after, self.requests.models.Response) - self.assertNotIn( - "We haven't received any JSON data", str(sess.get_cassette().storage_object) + message = ( + "Did not attempt to load JSON data because the request " + "Content-Type was not 'application/json'." ) - self.assertIn("We haven't received any JSON data", response_after.text) + self.assertNotIn(message, str(sess.get_cassette().storage_object)) + self.assertIn(message, response_after.text) @unittest.skipIf(not network_connection_available(), "No network connection") def testExecuteWrapper(self):