Beispiel #1
0
 def test_load_datafile_raises(self, locale):
     data_provider = BaseDataProvider(locale=locale)
     with pytest.raises(FileNotFoundError):
         data_provider._load_datafile("something.json")
Beispiel #2
0
 def test_load_datafile(self, locale, city):
     data_provider = BaseDataProvider(locale)
     data_provider._load_datafile("address.json")
     assert city in data_provider._data["city"]