first test
first test
This commit is contained in:
parent
d7e73d7621
commit
98b65bb808
5 changed files with 152 additions and 38 deletions
14
tests/test_bumper.py
Normal file
14
tests/test_bumper.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from nose.tools import *
|
||||
from tinydb.storages import MemoryStorage
|
||||
from tinydb import TinyDB, Query
|
||||
import bumper
|
||||
|
||||
|
||||
def test_useradd():
|
||||
btest = bumper
|
||||
btest.db = "tests/tmp.db"
|
||||
btest.user_add("testuser")
|
||||
|
||||
db = TinyDB("tests/tmp.db")
|
||||
users = db.table("users").search(Query().userid == "testuser")
|
||||
assert_equals(len(users), 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue