We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c4373 commit a9e6c70Copy full SHA for a9e6c70
tests/database_test.py
@@ -232,6 +232,13 @@ def test_context_manager(self) -> None:
232
record = reader.country("81.2.69.160")
233
assert record.traits.ip_address == "81.2.69.160"
234
235
+ def test_metadata(self) -> None:
236
+ with geoip2.database.Reader(
237
+ "tests/data/test-data/GeoIP2-Country-Test.mmdb"
238
+ ) as reader:
239
+ meta = reader.metadata()
240
+ assert meta.database_type == "GeoIP2-Country"
241
+
242
@patch("maxminddb.open_database")
243
def test_modes(self, mock_open) -> None:
244
mock_open.return_value = MagicMock()
0 commit comments