Skip to content
Snippets Groups Projects
Commit 0c9867be authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[attestations] update tests for attestations

parent f3e46629
No related branches found
No related tags found
1 merge request!165[reports/attestations/utils] expiration feature
Pipeline #
......@@ -590,7 +590,7 @@ class CleanAttstationManagementCommandTestCase(AttestationsAPIBase):
def test_outdated_attestation(self):
experiment = Experiment.objects.all()[0]
attestation = Attestation.objects.create_attestation(experiment)
attestation.expiration_date = attestation.expiration_date - timedelta(days=100)
attestation.expiration_date = attestation.expiration_date - timedelta(days=200)
attestation.save()
command_output = self.run_command()
self.assertEqual(command_output, '1 attestation(s) successfully cleaned')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment