Skip to content

Commit

Permalink
Tests: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianolorenti committed Jun 16, 2024
1 parent 12d1192 commit 95c6ff3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/dataset/analysis/Sensor Validation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.7"
}
},
"nbformat": 4,
Expand Down
7 changes: 3 additions & 4 deletions tests/test_analysis.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@


from random import sample
from typing import Dict

import numpy as np
import pandas as pd
from ceruleo.dataset.analysis.numerical_features import NumericalFeaturesAnalysis, analysis
from ceruleo.dataset.analysis.numerical_features import NumericalFeaturesAnalysis, analyze

from ceruleo.dataset.ts_dataset import AbstractPDMDataset
from ceruleo.dataset.analysis.correlation import CorrelationAnalysis, correlation_analysis
Expand Down Expand Up @@ -104,6 +103,6 @@ def test_distribution(self):

def test_analysis(self):
dataset = MockDataset(5)
df = analysis(dataset)
df = analyze(dataset)
keys = list(df.keys())
assert isinstance(df[keys[0]], NumericalFeaturesAnalysis)
2 changes: 1 addition & 1 deletion tests/test_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,5 @@ def test_durations_boxplot(self):
)
def test_durations_histogram(self):
dataset = MockDataset(7)
ax = durations_histogram(dataset)
ax = durations_histogram(dataset, label="Test Dataset")
return ax.figure

0 comments on commit 95c6ff3

Please sign in to comment.