(self)
| 95 | GeoIP2(bad, GeoIP2.MODE_AUTO) |
| 96 | |
| 97 | def test_no_database_file(self): |
| 98 | invalid_path = pathlib.Path(__file__).parent.joinpath("data/invalid").resolve() |
| 99 | msg = "Path must be a valid database or directory containing databases." |
| 100 | with self.assertRaisesMessage(GeoIP2Exception, msg): |
| 101 | GeoIP2(invalid_path) |
| 102 | |
| 103 | def test_bad_query(self): |
| 104 | g = GeoIP2(city="<invalid>") |
nothing calls this directly
no test coverage detected