def test_get_value_unsupported_args(self, faker): class FakeMock: def ean(unmatched_args): pass faker.return_value = FakeMock() faked_generator = FakeColumnGenerator() with pytest.raises(UnsupportedFakeTypeError): faked_generator.get_value("ean", {"not_valid_length": 13})
def test_get_value_unsupported(self, faker): class FakeMock: def ean(unmatched_args): pass faker.return_value = FakeMock() faked_generator = FakeColumnGenerator() with pytest.raises(UnsupportedFakeTypeError): faked_generator.get_value("NOT A VALID METHOD")