-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(test,eval_perf)add sql log filename in pytest
- Loading branch information
1 parent
494e98c
commit 0872b9c
Showing
2 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# force discovery of some fixtures | ||
from .fixtures import app, users, _session | ||
from pypnusershub.tests.fixtures import teardown_logout_user | ||
import pytest | ||
|
||
|
||
def pytest_addoption(parser): | ||
parser.addoption("--sql-log-filename", action="store", default=None) | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def sqllogfilename(request): | ||
return request.config.getoption("--sql-log-filename") |