Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124723
test_in_memory.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
671 B
Subscribers
None
test_in_memory.py
View Options
# Copyright (C) 2019-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import
unittest
import
pytest
from
swh.search
import
get_search
from
.test_search
import
CommonSearchTest
class
InmemorySearchTest
(
unittest
.
TestCase
,
CommonSearchTest
):
@pytest.fixture
(
autouse
=
True
)
def
_instantiate_search
(
self
):
self
.
search
=
get_search
(
"memory"
)
def
setUp
(
self
):
self
.
reset
()
def
reset
(
self
):
self
.
search
.
deinitialize
()
self
.
search
.
initialize
()
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sat, Jun 21, 7:27 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3445126
Attached To
rDSEA Archive search
Event Timeline
Log In to Comment