mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
create first fixture for gdbm
This commit is contained in:
parent
043771ab25
commit
2dd147c1c2
@ -16,5 +16,12 @@ except:
|
|||||||
import dumbdbm as dumb
|
import dumbdbm as dumb
|
||||||
from whichdb import whichdb
|
from whichdb import whichdb
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def make_gdbm_test_db():
|
||||||
|
db_name ="test_gdbm"
|
||||||
|
print "creating", db_name
|
||||||
|
test_db = gdbm.open(db_name, "n")
|
||||||
|
test_db['very first key'] = 'very first value'
|
||||||
|
test_db['second key'] = 'second value'
|
||||||
|
test_db.close()
|
||||||
|
return db_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user