Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
NoahStapp committed Apr 14, 2025
commit b306d6cf955eafe97bf36b67057ce62081b6ee80
4 changes: 3 additions & 1 deletion test/test_default_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ConfigurationError",
"WriteConcern",
]
PYMONGO_IGNORE = []
PYMONGO_IGNORE = ["uri_parser"]
GLOBAL_INGORE = ["TYPE_CHECKING", "annotations"]


Expand Down Expand Up @@ -213,6 +213,8 @@ def test_pymongo_submodule_attributes(self):
import pymongo

self.assertTrue(hasattr(pymongo, "uri_parser"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test fail before this fix? Also can we add:

 self.assertTrue(pymongo.uri_parser) self.assertTrue(pymongo.uri_parser.parse_uri))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this assertion fails before this fix.

self.assertTrue(pymongo.uri_parser)
self.assertTrue(pymongo.uri_parser.parse_uri)

def test_gridfs_imports(self):
import gridfs
Expand Down
Loading