Home / Function/ test_zipped_paths_extracted() — requests Function Reference

test_zipped_paths_extracted() — requests Function Reference

Architecture documentation for the test_zipped_paths_extracted() function in test_utils.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  374ab4e7_9992_78e3_98ab_b1f3ecc5e81e["test_zipped_paths_extracted()"]
  f07cd632_c107_10e3_2ac7_ed3a206fb72f["TestExtractZippedPaths"]
  374ab4e7_9992_78e3_98ab_b1f3ecc5e81e -->|defined in| f07cd632_c107_10e3_2ac7_ed3a206fb72f
  style 374ab4e7_9992_78e3_98ab_b1f3ecc5e81e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils.py lines 345–356

    def test_zipped_paths_extracted(self, tmpdir):
        zipped_py = tmpdir.join("test.zip")
        with zipfile.ZipFile(zipped_py.strpath, "w") as f:
            f.write(__file__)

        _, name = os.path.splitdrive(__file__)
        zipped_path = os.path.join(zipped_py.strpath, name.lstrip(r"\/"))
        extracted_path = extract_zipped_paths(zipped_path)

        assert extracted_path != zipped_path
        assert os.path.exists(extracted_path)
        assert filecmp.cmp(extracted_path, __file__)

Domain

Subdomains

Defined In

Frequently Asked Questions

What does test_zipped_paths_extracted() do?
test_zipped_paths_extracted() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_zipped_paths_extracted() defined?
test_zipped_paths_extracted() is defined in tests/test_utils.py at line 345.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free