Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix tests

Patryk Zawadzki34ef75dcdb93
diff --git a/tests/test_core.py b/tests/test_core.py
index 35eb21d2b7..105aac6442 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -13,8 +13,8 @@ from saleor.core.utils import (
({'country': {}}, None)])
def test_get_country_by_ip(ip_data, expected_country, monkeypatch):
monkeypatch.setattr(
- 'saleor.core.utils.geolite2.reader',
- Mock(return_value=Mock(get=Mock(return_value=ip_data))))
+ 'saleor.core.utils.georeader.get',
+ Mock(return_value=ip_data))
country = get_country_by_ip('127.0.0.1')
assert country == expected_country