Skip to content

Commit

Permalink
Make ensuretestdb command resilient to in-memory test databases
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Oct 17, 2024
1 parent 6eb7fa8 commit dd26213
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def handle(self, *args, **options):

def importjson_newer_than_db():
return (
DEFAULT_TEST_IMPORTJSON_FILE.stat().st_mtime
not settings.TEST_DB_FILE.exists()
or DEFAULT_TEST_IMPORTJSON_FILE.stat().st_mtime
> settings.TEST_DB_FILE.stat().st_mtime
)

Expand Down

0 comments on commit dd26213

Please sign in to comment.