path fixed
diff --git a/storage_api.py b/storage_api.py
index 8e995c1..026a46d 100644
--- a/storage_api.py
+++ b/storage_api.py
@@ -2,9 +2,11 @@
# from gspread import WorksheetNotFound, login
import json
import os
-from gspread import login
+from gspread import login, WorksheetNotFound
from config import ROW_COUNT, DOCUMENT_ID, WORK_SHEET
+TEST_PATH = os.environ.get("TEST_PATH", os.path.dirname(__file__) + "/test_results")
+
def get_work_sheet(sheet, name, column_names):
try:
diff --git a/web_app/__init__.py b/web_app/__init__.py
index 4870587..8a49095 100644
--- a/web_app/__init__.py
+++ b/web_app/__init__.py
@@ -2,7 +2,7 @@
from flask_bootstrap import Bootstrap
import json
import os.path
-from storage_api import create_storage
+from storage_api import create_storage, TEST_PATH
app = Flask(__name__)
Bootstrap(app)
@@ -11,7 +11,7 @@
def collect_tests():
result = []
- for file in os.listdir(os.path.dirname(__file__)):
+ for file in os.listdir(TEST_PATH):
if file.endswith(".json"):
result.append(file.split('.')[0])