Skip to content
Snippets Groups Projects
Commit 5f570c00 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[settings][test] Use the full path to the database as database name

This mimicks the Linux behaviour and allows to properly run the
beat/beat.cmdline tests on macOS.
parent 951a186f
No related branches found
No related tags found
1 merge request!325Improve new version handling
......@@ -48,7 +48,9 @@ if platform.system() == "Linux":
database_name = os.path.join(shm_path, "test.sqlite3")
else:
database_name = "test.sqlite3"
here = os.path.dirname(os.path.realpath(__file__))
database_name = os.path.join(here, "test.sqlite3")
DATABASES["default"]["NAME"] = database_name # noqa
DATABASES["default"]["TEST"] = {"NAME": DATABASES["default"]["NAME"]} # noqa
DATABASES["default"]["OPTIONS"]["timeout"] = 30 # noqa
......
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