Fix broken tests

This commit is contained in:
Raphael Michel
2020-05-28 22:47:32 +02:00
parent 1c8468c21b
commit a6c1c85591

View File

@@ -1879,7 +1879,7 @@ def test_refund_propose_equal_payment(client, env):
}, follow=True)
doc = BeautifulSoup(response.content.decode(), "lxml")
assert doc.select("input[name=refund-{}]".format(p2.pk))[0]['value'] == '7.00'
assert doc.select("input[name=refund-manual]".format(p2.pk))[0]['value'] == '0.00'
assert not doc.select("input[name=refund-manual]".format(p2.pk))[0].get('value')
@pytest.mark.django_db
@@ -1900,7 +1900,7 @@ def test_refund_propose_higher_payment(client, env):
}, follow=True)
doc = BeautifulSoup(response.content.decode(), "lxml")
assert doc.select("input[name=refund-{}]".format(p2.pk))[0]['value'] == '7.00'
assert doc.select("input[name=refund-manual]".format(p2.pk))[0]['value'] == '0.00'
assert not doc.select("input[name=refund-manual]".format(p2.pk))[0].get('value')
@pytest.mark.django_db