commit 3a93b55: [Test] Fix neural tests
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 22 15:35:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-22 16:32:06 +0100
URL: https://github.com/rspamd/rspamd/commit/3a93b559ebfcaf2bb03fa6792e9f3ee971cd6e3d (HEAD -> master)
[Test] Fix neural tests
---
test/functional/cases/330_neural.robot | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/test/functional/cases/330_neural.robot b/test/functional/cases/330_neural.robot
index 5751ee60f..19170e80d 100644
--- a/test/functional/cases/330_neural.robot
+++ b/test/functional/cases/330_neural.robot
@@ -14,14 +14,11 @@ ${REDIS_SCOPE} Suite
${RSPAMD_SCOPE} Suite
*** Test Cases ***
-Train Spam
+Train
Sleep 2s Wait for redis mess
: FOR ${INDEX} IN RANGE 0 10
\ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]}
\ Check Rspamc ${result} SPAM_SYMBOL (1.00)
-
-Train Ham
- : FOR ${INDEX} IN RANGE 0 10
\ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]}
\ Check Rspamc ${result} HAM_SYMBOL (-1.00)
@@ -37,17 +34,13 @@ Check Neural SPAM
Check Rspamc ${result} NEURAL_HAM_SHORT inverse=1
-Train Spam INVERSE
+Train INVERSE
: FOR ${INDEX} IN RANGE 0 10
\ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]; SPAM_SYMBOL = -1}
\ Check Rspamc ${result} SPAM_SYMBOL (-1.00)
-
-Train Ham INVERSE
- : FOR ${INDEX} IN RANGE 0 10
\ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]; HAM_SYMBOL = 1;}
\ Check Rspamc ${result} HAM_SYMBOL (1.00)
-
Check Neural HAM INVERSE
Sleep 2s Wait for neural to be loaded
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"];groups_enabled=["neural"]}
More information about the Commits
mailing list