Skip to content

Commit fdfc8f8

Browse files
committed
Revise for Python3.7
1 parent 95fee3c commit fdfc8f8

File tree

17 files changed

+47
-182
lines changed

17 files changed

+47
-182
lines changed

tests/logai/algorithms/feature_extraction_algo/test_label_encoding.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,3 @@ def test_model_creation_2d_attributes(self):
3131

3232
assert isinstance(res, pd.DataFrame), "results not in pandas.DataFrame"
3333
assert (res.columns == ["animals_categorical", "moves_categorical"]).all(), "results does not have correct column names"
34-
35-
36-
37-

tests/logai/algorithms/nn_model/test_tokenizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ def tokenize(self):
2323
tokenizer.normalizer = normalizers.Sequence(
2424
[normalizers.NFD(), normalizers.StripAccents()])
2525
tokenizer.pre_tokenizer = pre_tokenizers.BertPreTokenizer()
26-
27-
return

tests/logai/algorithms/nn_model/test_trainer.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/logai/algorithms/nn_model/test_transformers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,3 @@ def test_train_pred(self, log_pattern):
3838

3939
for l in y_label_pred:
4040
assert l in [0, 1], 'result should be either 0 or 1'
41-
42-

tests/logai/algorithms/parsing_algo/test_ael.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ def test_fit_parse(self, logrecord_body):
2424
parsed_loglines = parser.parse(logrecord_body['logline'])
2525

2626
assert isinstance(parsed_loglines, pd.Series), 'parse returns pandas.Series'
27-

tests/logai/algorithms/parsing_algo/test_drain.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,3 @@ def test_fit_parse(self, logrecord_body):
5252
assert parser.clusters_counter > 0, "log cluster number should be greater than zero after fit"
5353
assert isinstance(parser, Drain)
5454
assert isinstance(parsed_loglines, pd.Series), 'parse returns pandas.Series'
55-
56-

tests/logai/algorithms/parsing_algo/test_iplom.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ def test_fit_parse(self, logrecord_body):
2222
parsed_loglines = parser.parse(logrecord_body['logline'])
2323
assert isinstance(parser, IPLoM)
2424
assert isinstance(parsed_loglines, pd.Series), 'parse returns pandas.Series'
25-
26-

tests/logai/algorithms/vectorization_algo/test_tfidf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ def test_fit_predict(self, logrecord_body):
3636
res = model.transform(loglines)
3737
assert isinstance(res, pd.Series), "result is not a pandas.Series"
3838
assert len(loglines) == len(res), "result length should match input"
39-
return

tests/logai/algorithms/vectorization_algo/test_word2vec.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/logai/analysis/test_anomaly_detector.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,4 @@ def test_fit_predict_counter(self, log_counter_df):
7777
labels = anomaly_detector.predict(test)
7878

7979
assert isinstance(labels, pd.DataFrame), 'labels are not pd.DataFrame'
80-
8180
assert 'anom_score' in labels.columns, 'labels must contain anom_score column'
82-

0 commit comments

Comments
 (0)