mirror of
https://github.com/lutris/lutris
synced 2024-11-02 11:48:38 +00:00
Remove deletion of SQLite database in tests
This commit is contained in:
parent
382a3213cb
commit
83c4c4a1c9
2 changed files with 1 additions and 6 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue