Skip to main content

PyPi version CI status Documentation Status PyPi downloads

An extension for pytest provide useful tools for testing applications that use psqlgraph

How to Start

Install dependency

pip install pytest-psqlgraph

Define a session scoped psqlgraph_config fixture in conftest.py:

import pytest

@pytest.fixture(scope="session")
def psqlgraph_config() -> Dict[str, DatabaseDriverConfig]:
    return {
        "pg_driver": DatabaseDriverConfig(
            host="localhost",
            user="username",
            password="pword",
            database="db_name",
            model=active_model,
            dictionary=active_dictionary
        )
    }

All set to start using the fixture pg_driver or whatever key was defined in the dictionary above

def test_something(pg_driver):
    with pg_driver.session_scoped() as s:
        s.add(Node(..))

Contributing

Don’t hesitate to create a Github issue for any bugs or suggestions or submit a PR.

Release files for pytest-psqlgraph 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-psqlgraph 0.1.1
File Size Uploaded
pytest-psqlgraph-0.1.1.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-psqlgraph 0.1.1
File Interpreter ABI Platform
pytest_psqlgraph-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 37.1 kB

Release files / pytest-psqlgraph-0.1.1.tar.gz

Download URL pytest-psqlgraph-0.1.1.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5392d7f3840cb1d15e7d570d2cc0dfe3f3f4c123f27a14cb0492af1ed4c0b40c
BLAKE2b-256 checksum
How to use checksums
e59179cc4488ec51c8e14094c9c2bf4cead74e125a4273adf8913891a76469ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pytest_psqlgraph-0.1.1-py3-none-any.whl

Download URL pytest_psqlgraph-0.1.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b4740ebdf08fd28f45aa746f09689d27690e37cf7cab6d9f6eae4292c6430f9
BLAKE2b-256 checksum
How to use checksums
41e44036cb6d7fd717fbf041b654b6668ce32808f41fd67c63a80d4f523aae03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page