Remove tuple_store testing

This commit is contained in:
cclauss 2017-07-03 19:04:25 +02:00 committed by GitHub
parent a5f27b71ac
commit 6058e1c433

View file

@ -7,12 +7,7 @@ from database import Database
import os import os
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
tuple_store = False MAX_ID = 493
try:
MAX_ID = Database.MAX_ID
tuple_store = True
except AttributeError:
MAX_ID = 493 # Old Database makes db.__MAX_ID private :-(
region_info = namedtuple('region_info', 'start end') region_info = namedtuple('region_info', 'start end')
region_dict = { region_dict = {
@ -68,10 +63,6 @@ def test_extra_counts():
def test_get_extras(): def test_get_extras():
db = Database() db = Database()
# if tuple_store:
# assert db.get_region(
# 'extra'), "db.get_region('extra') returns no pokemon"
# else:
assert db.get_extra(), 'db.get_extra() returns no pokemon' assert db.get_extra(), 'db.get_extra() returns no pokemon'
assert db.get_extra() == sum(extra_counts.values()) assert db.get_extra() == sum(extra_counts.values())