Skip to content

Commit

Permalink
fix tests now
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 29, 2024
1 parent 83ebf3c commit 37cb37f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import sqlite3

import pytest
from app import _make_dicts
from app import create_app
from flask import g
from pioreactor.mureq import get

from pioreactorui.app import _make_dicts
from pioreactorui.app import create_app


@pytest.fixture()
def app():
Expand All @@ -30,7 +31,7 @@ def app():
db = g._app_database = sqlite3.connect(":memory:")
db.row_factory = _make_dicts
db.executescript(table_statements) # Set up schema
with app.open_resource("test_data.sql") as f:
with app.open_resource("tests/test_data.sql") as f:
db.executescript(f.read().decode("utf8"))

db.commit()
Expand Down

0 comments on commit 37cb37f

Please sign in to comment.