Skip to content

Commit

Permalink
Psycopg2Instrumentor now handles psycopg-binary in the deps check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Feb 5, 2025
1 parent ba50f6a commit e257eb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/otel_integrations/test_psycopg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@


def test_check_version():
assert check_version('psycopg2', '2.7.3.1', Psycopg2Instrumentor())
assert not check_version('psycopg2', '2.7.3.0', Psycopg2Instrumentor())
assert check_version('psycopg2-binary', '2.7.3.1', Psycopg2Instrumentor())
assert not check_version('psycopg2-binary', '2.7.3.0', Psycopg2Instrumentor())
assert check_version('psycopg', '3.1.0', PsycopgInstrumentor())
assert not check_version('psycopg', '3.0.1', PsycopgInstrumentor())

assert check_version(psycopg.__name__, psycopg.__version__, PsycopgInstrumentor())
assert check_version(psycopg2.__name__, psycopg2.__version__, Psycopg2Instrumentor()) # type: ignore


def test_instrument_psycopg():
Expand Down

0 comments on commit e257eb2

Please sign in to comment.