Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-core
Commits
8523bca5
Commit
8523bca5
authored
2 years ago
by
David Douard
Browse files
Options
Downloads
Patches
Plain Diff
tests: use stock pytest_postgresql factory function
instead of the custom factory_fact.
parent
749ac571
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/core/db/tests/test_db.py
+2
-2
2 additions, 2 deletions
swh/core/db/tests/test_db.py
with
2 additions
and
2 deletions
swh/core/db/tests/test_db.py
+
2
−
2
View file @
8523bca5
...
...
@@ -16,11 +16,11 @@ from hypothesis import given, settings, strategies
from
hypothesis.extra.pytz
import
timezones
import
psycopg2
import
pytest
from
pytest_postgresql
import
factories
from
typing_extensions
import
Protocol
from
swh.core.db
import
BaseDb
from
swh.core.db.common
import
db_transaction
,
db_transaction_generator
from
swh.core.db.pytest_plugin
import
postgresql_fact
from
swh.core.db.tests.conftest
import
function_scoped_fixture_check
...
...
@@ -244,7 +244,7 @@ def convert_lines(cur):
]
test_db
=
postgresql
_fact
(
"
postgresql_proc
"
,
dbname
=
"
test-db2
"
)
test_db
=
factories
.
postgresql
(
"
postgresql_proc
"
,
dbname
=
"
test-db2
"
)
@pytest.fixture
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment