Skip to content

Commit

Permalink
updated tests for cli config option to reflect that 'config/' directo…
Browse files Browse the repository at this point in the history
…ry specification is no longer required.
  • Loading branch information
jbobbylopez committed Jul 15, 2024
1 parent 7a93e13 commit d6ff5d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test_host_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import subprocess
import sys
import os
# Make sure script can find and import modules from directories relative to the script’s location
# ensures that the directory containing this script is searched first when we import modules.
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__))))

import io
import re
import host_information
Expand All @@ -22,7 +25,7 @@ def test_hi_config_argv_watch_info_config(capsys):
original_argv = sys.argv.copy()

# set argv for this test
sys.argv = ['watch', 'info', 'config', 'config/example.yml']
sys.argv = ['watch', 'info', 'config', 'example.yml']
pattern = r"\[\❌\]|\[\✅\]"

try:
Expand All @@ -42,7 +45,7 @@ def test_hi_config_argv_config(capsys):
pattern = r"\[\❌\]|\[\✅\]"

# set argv for this test
sys.argv = ['config', 'config/example.yml']
sys.argv = ['config', 'example.yml']

try:
host_information.display_checks()
Expand Down

0 comments on commit d6ff5d4

Please sign in to comment.