You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on this PR #123. I needed to move the SQLite database from the root folder to a new storage folder, and some tests have been broken.
The problem is the tests are using the default location for the SQLite database, which is the file data.db in the root folder and one test is also creating the database if it does not exist.
We have to fix it. We need to use a different location to isolate tests from the default location for the production database. And we should also use an independent database for each test.
We did it for the newer API tests here. We just need to do the same.
If you remove both the config.toml and the data.db file in the root folder, you'll see how the data.db file is created again.
The text was updated successfully, but these errors were encountered:
I was using the deafult DB configuration for some tests.
Every test has to use its own database and the database should be
located in a different location than the production default location.
dca7550 fix: [#125] using default sqlite db for tests (Jose Celano)
Pull request description:
I was using the default DB configuration for some tests.
Every test must use its database to decouple tests.
And the database must be located in a different location than the production default location to avoid overwriting production data accidentally.
Top commit has no ACKs.
Tree-SHA512: 8f1403302fb737a446e2a04d41d24079fe0713ea57202a9a0f83644a628fb425754e431a445df44de09f7faabccdf86f4560270c4e903573a1168ecdd82f2ab7
I'm working on this PR #123. I needed to move the SQLite database from the root folder to a new
storage
folder, and some tests have been broken.The problem is the tests are using the default location for the SQLite database, which is the file
data.db
in the root folder and one test is also creating the database if it does not exist.We have to fix it. We need to use a different location to isolate tests from the default location for the production database. And we should also use an independent database for each test.
We did it for the newer API tests here. We just need to do the same.
If you remove both the
config.toml
and thedata.db
file in the root folder, you'll see how thedata.db
file is created again.The text was updated successfully, but these errors were encountered: