Skip to content

Commit

Permalink
loosens test since last-updates are auto fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyRogers committed Jan 17, 2024
1 parent 0e21458 commit 0a8f872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/api/test_study.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime

# Copyright 2020 EMBL - European Bioinformatics Institute
#
Expand Down Expand Up @@ -45,7 +46,7 @@ def test_details(self, client, study):
assert _attr['study-abstract'] == "abcdefghijklmnoprstuvwyz"
assert _attr['study-name'] == "Example study name SRP01234"
assert _attr['data-origination'] == "HARVESTED"
assert _attr['last-update'] == "1970-01-01T00:00:00"
assert _attr['last-update'][:4] == datetime.datetime.now().isoformat()[:4]
assert _attr['bioproject'] == "PRJDB1234"
assert _attr['is-private'] == False

Expand Down

0 comments on commit 0a8f872

Please sign in to comment.