mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 07:35:51 +00:00
Update requirements
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user