mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 01:42:16 +00:00
More test munging
This commit is contained in:
@@ -18,12 +18,12 @@ def test_str():
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_find_correct(vat_rate):
|
||||
def test_find_correct():
|
||||
new_rate = models.VatRate.objects.create(start_at='2016-03-01', rate=0.15, comment='test2')
|
||||
r = models.VatRate.objects.find_rate('2015-03-01')
|
||||
assert r.rate == vat_rate.rate
|
||||
assert r == vat_rate
|
||||
r = models.VatRate.objects.find_rate('2016-03-01')
|
||||
assert r.rate == new_rate.rate
|
||||
assert r == new_rate
|
||||
|
||||
|
||||
def test_percent_correct(vat_rate):
|
||||
|
||||
Reference in New Issue
Block a user