diff options
author | toofar <toofar@spalge.com> | 2023-12-02 12:41:23 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-12-02 12:41:23 +1300 |
commit | 1aa3c952aba8054f01504760c971d80de42db8af (patch) | |
tree | 46fa29e7ab7ab930f0610a19dd77921d10e43bcc | |
parent | 302a8f582a13add8dafc25f33d5738172c18e448 (diff) | |
download | qutebrowser-1aa3c952aba8054f01504760c971d80de42db8af.tar.gz qutebrowser-1aa3c952aba8054f01504760c971d80de42db8af.zip |
pakjoy: fix happy path test
read back the manifest inside the context manager so we can find the
work dir.
-rw-r--r-- | tests/unit/misc/test_pakjoy.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/unit/misc/test_pakjoy.py b/tests/unit/misc/test_pakjoy.py index f5bb5b49c..65d02ec7e 100644 --- a/tests/unit/misc/test_pakjoy.py +++ b/tests/unit/misc/test_pakjoy.py @@ -200,9 +200,8 @@ class TestWithRealResourcesFile: # the current installation. Make sure our replacement string is in it # afterwards. with pakjoy.patch_webengine(): - pass + json_manifest = read_patched_manifest() - json_manifest = read_patched_manifest() assert ( pakjoy.REPLACEMENT_URL.decode("utf-8") in json_manifest["externally_connectable"]["matches"] @@ -416,7 +415,6 @@ class TestWithConstructedResourcesFile: def test_patching(self, resources_path: pathlib.Path, quirk_dir_path: pathlib.Path): """Go through the full patching processes with a fake resources file.""" - with pakjoy.patch_webengine(): assert os.environ[pakjoy.RESOURCES_ENV_VAR] == str(quirk_dir_path) json_manifest = read_patched_manifest() |