mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-12-03 17:19:31 +00:00
Remove tuple_store testing
This commit is contained in:
parent
a5f27b71ac
commit
6058e1c433
1 changed files with 1 additions and 10 deletions
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue