Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cugni committed Jun 5, 2017
1 parent bac9bf1 commit 83d8dd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/withcassandra/storageobj_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ def test_make_persistent(self):

nopars.make_persistent("hecuba_test.wordsso")

count, = config.session.execute('SELECT count(*) FROM hecuba_test.words')[0]
count, = config.session.execute('SELECT count(*) FROM hecuba_test.wordsso_words')[0]
self.assertEqual(10, count)

def test_empty_persistent(self):
config.session.execute("DROP TABLE IF EXISTS hecuba.words")
config.session.execute("DROP TABLE IF EXISTS hecuba.wordsso_words")
config.session.execute("DROP TABLE IF EXISTS hecuba.wordsso")
from app.words import Words
so = Words()
Expand All @@ -151,13 +151,13 @@ def test_empty_persistent(self):

del so

count, = config.session.execute('SELECT count(*) FROM hecuba.words')[0]
count, = config.session.execute('SELECT count(*) FROM hecuba.wordsso_words')[0]
self.assertEqual(10, count)
so = Words()
so.make_persistent("wordsso")
so.delete_persistent()

count, = config.session.execute('SELECT count(*) FROM hecuba.words')[0]
count, = config.session.execute('SELECT count(*) FROM hecuba.wordsso_words')[0]
self.assertEqual(0, count)

def test_simple_stores_after_make_persistent(self):
Expand Down

0 comments on commit 83d8dd1

Please sign in to comment.