How to use the testpath.asserts.Path function in testpath

To help you get started, we’ve selected a few testpath examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyter / testpath / testpath / asserts.py View on Github external
def _strpath(p):
        if hasattr(p, '__fspath__'):
            return p.__fspath__()
        elif isinstance(p, Path):
            return str(p)
        return p

testpath

Test utilities for code working with files and commands

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

55 / 100
Full package analysis

Similar packages