Permalink
Browse files

all tests passing except create_user

  • Loading branch information...
1 parent 5299dbc commit 9809a181279ec142602665b79645945f1b9f5364 @sfioritto committed Feb 26, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 tests/test_model.py
  2. +1 −1 webapp/model.py
View
@@ -31,15 +31,15 @@ def test_get_whorls():
rd = test_build_raw_data()
test_create_get_whorls() #creates some whorls to get
whorls = model.get_whorls(rd)
- assert len(whorls) == 3
+ assert len(whorls) == 4
return whorls
@with_setup(setup, teardown)
def test_create_get_whorls():
rd = test_build_raw_data()
whorls = model.create_get_whorls(rd)
- assert len(whorls) == 3
+ assert len(whorls) == 4
return whorls
@@ -103,7 +103,7 @@ def test_get_whorl_identities():
whorls, identity = test_learn()
wis = model.get_whorl_identities(whorls, identity)
- assert len(wis) == 3
+ assert len(wis) == 4
@with_setup(setup, teardown)
View
@@ -124,7 +124,7 @@ def learn(whorls, identity):
db = Session()
identity.count = identity.count + 1
- total_visits = db.query(Stat).filter_by(name="total_visits").one()
+ total_visits = db.query(Stat).filter_by(key="total_visits").one()
total_visits.value = total_visits.value + 1
for whorl in whorls:

0 comments on commit 9809a18

Please sign in to comment.