Skip to content

Commit 327b4cf

Browse files
committed
tests format
1 parent b4ebe3e commit 327b4cf

File tree

8 files changed

+11
-5
lines changed

8 files changed

+11
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ ignore_missing_imports = true
5858
[tool.ruff]
5959
line-length = 120
6060
exclude = [
61-
"tests",
6261
"docs",
6362
"tutorial",
6463
]

tests/unit_tests/core/test_smartdrift.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit tests for SmartDrift
33
"""
4+
45
import os
56
import unittest
67
from os import path

tests/unit_tests/report/test_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module Unit test of common.py
33
"""
4+
45
import os
56
import unittest
67
from os import path

tests/unit_tests/report/test_project_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit tests for project_report.py
33
"""
4+
45
import os
56
import unittest
67
from os import path

tests/unit_tests/style/test_style_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit test of style_utils
33
"""
4+
45
import re
56
import unittest
67

tests/unit_tests/utils/test_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit test io.py
33
"""
4+
45
import unittest
56
from os import path
67
from pathlib import Path
@@ -9,6 +10,7 @@
910
import pytest
1011
import tempfile
1112

13+
1214
class Testio(unittest.TestCase):
1315
"""
1416
Unit test io.py
@@ -26,7 +28,6 @@ def test_load_yml(self):
2628

2729
load_yml(project_info_path)
2830

29-
3031
def test_save_pickle(self):
3132
with pytest.raises(ValueError):
3233
save_pickle(dict(), 1)

tests/unit_tests/utils/test_statistical_tests.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit test statistical_tests.py
33
"""
4+
45
import unittest
56

67
import numpy as np
@@ -49,10 +50,10 @@ def test_prob_mass_fun(self):
4950
a = np.concatenate((X1, X2), axis=0)
5051
range = (a.min(), a.max())
5152

52-
res1, res2 = prob_mass_fun(X1,3,range)
53+
res1, res2 = prob_mass_fun(X1, 3, range)
5354

54-
assert res1.all() == np.array([0., 1., 2., 3.]).all()
55-
assert res2.all() == np.array([0.3, 0.2 , 0.5]).all()
55+
assert res1.all() == np.array([0.0, 1.0, 2.0, 3.0]).all()
56+
assert res2.all() == np.array([0.3, 0.2, 0.5]).all()
5657

5758
def test_compute_js_divergence(self):
5859
"""

tests/unit_tests/utils/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Unit test utils.py
33
"""
4+
45
import os
56
import unittest
67
from pathlib import Path

0 commit comments

Comments
 (0)