Skip to content

Commit

Permalink
chane to pytest scripts
Browse files Browse the repository at this point in the history
commented out @pytest.mark.timeout(300)  # Extended timeout to 5 minutes due to warnings generated in pytest
  • Loading branch information
LMBooth committed Oct 15, 2023
1 parent 7555835 commit f23eb40
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/test_PseudoDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pybci import PyBCI
from pybci.Utils.PseudoDevice import PseudoDeviceController
# Test case using the fixture
@pytest.mark.timeout(300) # Extended timeout to 5 minutes
#@pytest.mark.timeout(300) # Extended timeout to 5 minutes
def test_run_pseudo():
bci = PyBCI(minimumEpochsRequired=5, createPseudoDevice=True)
while not bci.connected:
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_Pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def PyTorchModel(x_train, x_test, y_train, y_test):
accuracy = correct / len(y_test)
return accuracy, model

@pytest.mark.timeout(300) # Extended timeout to 5 minutes
#@pytest.mark.timeout(300) # Extended timeout to 5 minutes
def test_run_bci():
bci = PyBCI(minimumEpochsRequired = 4, createPseudoDevice=True, torchModel = PyTorchModel)
while not bci.connected:
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_Simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

# Test case using the fixture
@pytest.mark.timeout(300) # Extended timeout to 5 minutes
#@pytest.mark.timeout(300) # Extended timeout to 5 minutes
def test_run_bci():
bci = PyBCI(minimumEpochsRequired=5, createPseudoDevice=True)
while not bci.connected:
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_Sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from sklearn.neural_network import MLPClassifier
# Test case using the fixture
@pytest.mark.timeout(300) # Extended timeout to 5 minutes
#@pytest.mark.timeout(300) # Extended timeout to 5 minutes
def test_run_bci():
clf = MLPClassifier(max_iter = 1000, solver ="lbfgs")#solver=clf, alpha=alpha,hidden_layer_sizes=hid)
bci = PyBCI(minimumEpochsRequired=5, createPseudoDevice=True, clf = clf)
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_Tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
optimizer='adam',
metrics=['accuracy'])

@pytest.mark.timeout(300) # Extended timeout to 5 minutes
#@pytest.mark.timeout(300) # Extended timeout to 5 minutes
def test_run_bci():
bci = PyBCI(minimumEpochsRequired = 4, createPseudoDevice=True, model = model)
while not bci.connected:
Expand Down

0 comments on commit f23eb40

Please sign in to comment.