Remove deletion of SQLite database in tests

This commit is contained in:
Mathieu Comandon 2021-12-14 13:58:45 -08:00
parent 382a3213cb
commit 83c4c4a1c9
2 changed files with 1 additions and 6 deletions

View file

@ -28,7 +28,7 @@ COVERART_PATH = os.path.join(DATA_DIR, "coverart")
ICON_PATH = os.path.join(GLib.get_user_data_dir(), "icons", "hicolor", "128x128", "apps")
sio = SettingsIO(CONFIG_FILE)
if "nose2" in sys.argv[0] or "pytest" in sys.argv[0]:
if "nosetests" in sys.argv[0] or "nose2" in sys.argv[0] or "pytest" in sys.argv[0]:
PGA_DB = "/tmp/pga.db"
else:
PGA_DB = sio.read_setting("pga_path") or os.path.join(DATA_DIR, "pga.db")

View file

@ -16,11 +16,6 @@ class DatabaseTester(unittest.TestCase):
os.remove(settings.PGA_DB)
schema.syncdb()
def tearDown(self):
if os.path.exists(settings.PGA_DB):
os.remove(settings.PGA_DB)
class TestPersonnalGameArchive(DatabaseTester):
def test_add_game(self):
games_db.add_game(name="LutrisTest", runner="Linux")