Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-vault
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-vault
Commits
3aafd23d
Commit
3aafd23d
authored
6 years ago
by
David Douard
Browse files
Options
Downloads
Patches
Plain Diff
tests: storage's StorageTestFixture now inherit from SingleDbTestFixture
parent
87c3c595
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
swh/vault/tests/test_backend.py
+1
-2
1 addition, 2 deletions
swh/vault/tests/test_backend.py
swh/vault/tests/test_cache.py
+1
-2
1 addition, 2 deletions
swh/vault/tests/test_cache.py
swh/vault/tests/test_cookers.py
+1
-2
1 addition, 2 deletions
swh/vault/tests/test_cookers.py
with
3 additions
and
6 deletions
swh/vault/tests/test_backend.py
+
1
−
2
View file @
3aafd23d
...
...
@@ -10,13 +10,12 @@ import unittest
from
unittest.mock
import
patch
from
swh.core.tests.db_testing
import
DbTestFixture
from
swh.model
import
hashutil
from
swh.storage.tests.storage_testing
import
StorageTestFixture
from
swh.vault.tests.vault_testing
import
VaultTestFixture
,
hash_content
class
BaseTestBackend
(
VaultTestFixture
,
StorageTestFixture
,
DbTestFixture
):
class
BaseTestBackend
(
VaultTestFixture
,
StorageTestFixture
):
@contextlib.contextmanager
def
mock_cooking
(
self
):
with
patch
.
object
(
self
.
vault_backend
,
'
_send_task
'
)
as
mt
:
...
...
This diff is collapsed.
Click to expand it.
swh/vault/tests/test_cache.py
+
1
−
2
View file @
3aafd23d
...
...
@@ -5,7 +5,6 @@
import
unittest
from
swh.core.tests.db_testing
import
DbTestFixture
from
swh.model
import
hashutil
from
swh.storage.tests.storage_testing
import
StorageTestFixture
from
swh.vault.tests.vault_testing
import
VaultTestFixture
...
...
@@ -23,7 +22,7 @@ TEST_CONTENT_1 = b'test content 1'
TEST_CONTENT_2
=
b
'
test content 2
'
class
BaseTestVaultCache
(
VaultTestFixture
,
StorageTestFixture
,
DbTestFixture
):
class
BaseTestVaultCache
(
VaultTestFixture
,
StorageTestFixture
):
def
setUp
(
self
):
super
().
setUp
()
self
.
cache
=
self
.
vault_backend
.
cache
# little shortcut
...
...
This diff is collapsed.
Click to expand it.
swh/vault/tests/test_cookers.py
+
1
−
2
View file @
3aafd23d
...
...
@@ -21,7 +21,6 @@ import dulwich.objects
import
dulwich.porcelain
import
dulwich.repo
from
swh.core.tests.db_testing
import
DbTestFixture
from
swh.loader.git.loader
import
GitLoader
from
swh.model
import
hashutil
from
swh.model.from_disk
import
Directory
...
...
@@ -102,7 +101,7 @@ class TestRepo:
self
.
git_shell
(
*
args
,
stdout
=
None
)
class
BaseTestCookers
(
VaultTestFixture
,
StorageTestFixture
,
DbTestFixture
):
class
BaseTestCookers
(
VaultTestFixture
,
StorageTestFixture
):
"""
Base class of cookers unit tests
"""
def
setUp
(
self
):
super
().
setUp
()
...
...
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