forked from CGM_Public/pretix_original
Fix crash on VAT IDs with missing country prefix
This commit is contained in:
@@ -16,6 +16,12 @@ def test_eu_invalid_format():
|
||||
validate_vat_id('AT12345', 'AT')
|
||||
|
||||
|
||||
@responses.activate
|
||||
def test_eu_no_prefix():
|
||||
with pytest.raises(VATIDFinalError):
|
||||
validate_vat_id('12345', 'AT')
|
||||
|
||||
|
||||
@responses.activate
|
||||
def test_eu_country_mismatch():
|
||||
with pytest.raises(VATIDFinalError):
|
||||
|
||||
Reference in New Issue
Block a user