Update requirements

This commit is contained in:
2024-03-12 14:24:03 +01:00
parent 94cb2a0617
commit 152c59dbbb
4 changed files with 18 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import pytest
from sys import platform
from beflask import app as application
from flask_login import FlaskLoginClient
from beflask.models import Benchmark, User, db
@@ -76,22 +77,28 @@ def guest_password():
def db_seed(db, admin_user, admin_password):
db.drop_all()
db.create_all()
if platform == "linux" or platform == "linux2":
prefix = "/home"
elif platform == "darwin":
prefix = "/Users"
else:
prefix = "/home"
b = Benchmark(
name="discretizbench",
folder="/Users/rmontanana/Code/discretizbench",
folder=f"{prefix}/rmontanana/Code/discretizbench",
description="Experiments with local discretization and Bayesian"
"classifiers",
)
db.session.add(b)
b = Benchmark(
name="odtebench",
folder="/Users/rmontanana/Code/odtebench",
folder=f"{prefix}/rmontanana/Code/odtebench",
description="Experiments with STree and Ensemble classifiers",
)
db.session.add(b)
b = Benchmark(
name="covbench",
folder="/Users/rmontanana/Code/covbench",
folder=f"{prefix}/rmontanana/Code/covbench",
description="Experiments with COVID-19 dataset",
)
db.session.add(b)