Skip to content

Commit a09b1f1

Browse files
committed
fix test for pymongo 3.9 import
1 parent c310e14 commit a09b1f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_connection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def test_connect_uri_uuidrepresentation_set_in_uri(self):
637637
)
638638
assert (
639639
tmp_conn.options.codec_options.uuid_representation
640-
== pymongo.common.UuidRepresentation.CSHARP_LEGACY
640+
== pymongo.common._UUID_REPRESENTATIONS["csharpLegacy"]
641641
)
642642
disconnect(rand)
643643

@@ -646,7 +646,7 @@ def test_connect_uri_uuidrepresentation_set_as_arg(self):
646646
tmp_conn = connect(alias=rand, db=rand, uuidRepresentation="javaLegacy")
647647
assert (
648648
tmp_conn.options.codec_options.uuid_representation
649-
== pymongo.common.UuidRepresentation.JAVA_LEGACY
649+
== pymongo.common._UUID_REPRESENTATIONS["javaLegacy"]
650650
)
651651
disconnect(rand)
652652

@@ -659,7 +659,7 @@ def test_connect_uri_uuidrepresentation_set_both_arg_and_uri_arg_prevail(self):
659659
)
660660
assert (
661661
tmp_conn.options.codec_options.uuid_representation
662-
== pymongo.common.UuidRepresentation.JAVA_LEGACY
662+
== pymongo.common._UUID_REPRESENTATIONS["javaLegacy"]
663663
)
664664
disconnect(rand)
665665

@@ -669,7 +669,7 @@ def test_connect_uri_uuidrepresentation_default_to_pythonlegacy(self):
669669
tmp_conn = connect(alias=rand, db=rand)
670670
assert (
671671
tmp_conn.options.codec_options.uuid_representation
672-
== pymongo.common.UuidRepresentation.PYTHON_LEGACY
672+
== pymongo.common._UUID_REPRESENTATIONS["pythonLegacy"]
673673
)
674674
disconnect(rand)
675675

0 commit comments

Comments
 (0)