def test_get_taxes_for_address_other_country(address, vatlayer): address.country = 'DE' address.save() tax_rates = get_taxes_for_country(Country('DE')) taxes = get_taxes_for_address(address) compare_taxes(taxes, tax_rates)
def test_get_taxes_for_address_other_country(address, vatlayer): address.country = 'DE' address.save() tax_rates = get_taxes_for_country(Country('DE')) taxes = get_taxes_for_address(address) compare_taxes(taxes, tax_rates)
def test_get_taxes_for_address_fallback_default(settings, vatlayer): settings.DEFAULT_COUNTRY = 'PL' taxes = get_taxes_for_address(None) compare_taxes(taxes, vatlayer)
def test_get_taxes_for_address(address, vatlayer): taxes = get_taxes_for_address(address) compare_taxes(taxes, vatlayer)
def test_get_taxes_for_address_fallback_default(settings, vatlayer): settings.DEFAULT_COUNTRY = 'PL' taxes = get_taxes_for_address(None) compare_taxes(taxes, vatlayer)
def test_get_taxes_for_address(address, vatlayer): taxes = get_taxes_for_address(address) compare_taxes(taxes, vatlayer)