Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miauwkeru committed Nov 16, 2023
1 parent 4013015 commit e56bd7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/test_acquire_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
CONFIG,
MODULES,
PROFILES,
VOLATILE,
create_argument_parser,
parse_acquire_args,
)
Expand All @@ -17,7 +18,7 @@
def acquire_parser_args(config: List, argument_list: List) -> Namespace:
CONFIG["arguments"] = config
with patch("argparse._sys.argv", [""] + argument_list):
return parse_acquire_args(create_argument_parser(PROFILES, MODULES), config=CONFIG)
return parse_acquire_args(create_argument_parser(PROFILES, VOLATILE, MODULES), config=CONFIG)


@pytest.mark.parametrize("config, argument_list", [([], [])])
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest
from dissect.target import Target

from acquire.acquire import MODULES, PROFILES
from acquire.acquire import MODULES, PROFILES, VOLATILE
from acquire.utils import (
check_and_set_acquire_args,
check_and_set_log_args,
Expand All @@ -26,7 +26,7 @@ def get_args(**kwargs):
"public_key": None,
}

parser = create_argument_parser(PROFILES, MODULES)
parser = create_argument_parser(PROFILES, VOLATILE, MODULES)
default_args = dict(parser.parse_args(args=[])._get_kwargs())
default_args.update(kwargs)

Expand Down

0 comments on commit e56bd7a

Please sign in to comment.