Skip to content

Commit

Permalink
NXDRIVE-2339: Tell test_proxy.py to use a temporary folder instead of…
Browse files Browse the repository at this point in the history
… the current directory

Also fixed the ignored pattern for databases in WAL mode.
  • Loading branch information
Mickaël Schoentgen committed Oct 14, 2020
1 parent 6e8c629 commit 067b421
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cover
coverage
.coverage*
*.db-shm
*.db-wall
*.db-wal
debian
dist
dist-beta
Expand Down
1 change: 1 addition & 0 deletions docs/changes/4.4.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Release date: `2020-xx-xx`

- [NXDRIVE-2316](https://jira.nuxeo.com/browse/NXDRIVE-2316): Skip the synchronization in the auto-update check script
- [NXDRIVE-2326](https://jira.nuxeo.com/browse/NXDRIVE-2326): Fix test `test_get_metadata_infos()`
- [NXDRIVE-2339](https://jira.nuxeo.com/browse/NXDRIVE-2339): Tell `test_proxy.py` to use a temporary folder instead of the current directory

## Docs

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def js():


@pytest.fixture()
def config_dao():
db = Path("tmp.db")
def config_dao(tmp_path):
db = tmp_path / "tmp.db"
dao = ConfigurationDAO(db)
yield dao
dao.dispose()
Expand Down

0 comments on commit 067b421

Please sign in to comment.