Skip to content

Commit

Permalink
fixed api3 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostap-Zherebetskyi committed Jan 8, 2025
1 parent a700a00 commit 31cf8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osf_tests/management_commands/test_check_crossref_dois.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def preprint(self):

@pytest.fixture()
def stuck_preprint(self):
preprint = PreprintFactory(set_doi=False)
preprint = PreprintFactory(set_doi=False, set_guid='guid0')
preprint.date_published = preprint.date_published - timedelta(days=settings.DAYS_CROSSREF_DOIS_MUST_BE_STUCK_BEFORE_EMAIL + 1)
# match guid to the fixture crossref_works_response.json
guid = preprint.guids.first()
Expand Down
1 change: 1 addition & 0 deletions osf_tests/test_guid.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,5 +565,6 @@ def test_versioned_preprint_id_property(self, creator, preprint_provider):
assert preprint._id == expected_guid

GuidVersionsThrough.objects.filter(guid=preprint_guid).delete()
preprint._id = None

assert preprint._id is None

0 comments on commit 31cf8be

Please sign in to comment.