Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Oct 4, 2024
1 parent b10b5f0 commit 1d9d79e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ml_model/test_ml_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def validate(self, _candidate: Candidate) -> Tuple[bool, float]:
is_cred_batch, probability_batch = self.ml_validator.validate_groups(sample_as_batch, 1)
return is_cred_batch[0], probability_batch[0]

def test_ml_validator_simple_p(self):
def test_ml_validator_simple_n(self):
candidate = Candidate.get_dummy_candidate(self.config, "main.py", ".py", "info")
candidate.rule_name = "Password"
candidate.line_data_list[0].line = 'password="Ahga%$FiQ@Ei8"'
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def test_get_chunks_p(self):
], #
Util.get_chunks(line_length))

def test_get_chunks_coverage_p(self):
def test_get_chunks_coverage_n(self):
line_len = MAX_LINE_LENGTH
while 7 * MAX_LINE_LENGTH > line_len:
line_len += random.randint(1, OVERLAP_SIZE)
Expand Down

0 comments on commit 1d9d79e

Please sign in to comment.