forked from p15670423/monkey
tests: Modify unit test for reverse schema generation
This commit is contained in:
parent
faa4c18cab
commit
ae6ebcf3c7
|
@ -1,5 +1,5 @@
|
|||
from monkey_island.cc.services.config_schema.config_schema_per_attack_technique import (
|
||||
get_config_schema_per_attack_technique,
|
||||
ConfigSchemaPerAttackTechnique,
|
||||
)
|
||||
|
||||
REVERSE_FAKE_SCHEMA = {
|
||||
|
@ -19,4 +19,7 @@ REVERSE_FAKE_SCHEMA = {
|
|||
|
||||
|
||||
def test_get_config_schema_per_attack_technique(monkeypatch, fake_schema):
|
||||
assert get_config_schema_per_attack_technique(fake_schema) == REVERSE_FAKE_SCHEMA
|
||||
assert (
|
||||
ConfigSchemaPerAttackTechnique().get_config_schema_per_attack_technique(fake_schema)
|
||||
== REVERSE_FAKE_SCHEMA
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue