tests: use utcnow in TIPI refdet verifications (#46237)

This commit is contained in:
Thomas NOËL 2020-09-01 00:49:49 +02:00
parent ff51a685bf
commit 736b20e162
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ def test_tipi_no_orderid_no_refdet():
assert parsed_qs['mel'] == ['info@entrouvert.com']
assert parsed_qs['numcli'] == ['12345']
assert parsed_qs['exer'] == ['9999']
assert parsed_qs['refdet'][0].startswith(datetime.datetime.now().strftime('%Y%m%d'))
assert parsed_qs['refdet'][0].startswith(datetime.datetime.utcnow().strftime('%Y%m%d'))
def test_tipi_orderid_refdef_compatible():
@ -110,6 +110,6 @@ def test_tipi_orderid_not_refdef_compatible():
assert parsed_qs['saisie'] == ['A']
assert parsed_qs['mel'] == ['info@entrouvert.com']
assert parsed_qs['numcli'] == ['12345']
assert parsed_qs['refdet'][0].startswith(datetime.datetime.now().strftime('%Y%m%d'))
assert parsed_qs['refdet'][0].startswith(datetime.datetime.utcnow().strftime('%Y%m%d'))
assert 'coucou' in parsed_qs['objet'][0]
assert 'F12-12-12' in parsed_qs['objet'][0]