Skip to content

Commit

Permalink
adjust unittests to search in user dir for Windows tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
treee111 committed Nov 12, 2022
1 parent de51f13 commit 9af439a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# import custom python packages
from wahoomc.setup_functions import is_program_installed, is_map_writer_plugin_installed, read_version_last_run
from wahoomc.constants_functions import get_tooling_win_path
from wahoomc.constants_functions import get_tooling_win_path, get_tooling_win_path_user
from wahoomc.constants import USER_WAHOO_MC
from wahoomc.file_directory_functions import write_json_file_generic

Expand Down Expand Up @@ -37,12 +37,12 @@ def test_installed_programs_windows(self):
if platform.system() == "Windows":
self.check_installation_of_program("java")

self.assertTrue(os.path.exists(get_tooling_win_path(
self.assertTrue(os.path.exists(get_tooling_win_path_user(
['Osmosis', 'bin', 'osmosis.bat'])))
self.assertTrue(os.path.exists(
get_tooling_win_path(['osmconvert.exe'])))
get_tooling_win_path_user(['osmconvert.exe'])))
self.assertTrue(os.path.exists(
get_tooling_win_path(['osmfilter.exe'])))
get_tooling_win_path_user(['osmfilter.exe'])))
self.assertTrue(os.path.exists(get_tooling_win_path(['7za.exe'])))

def check_installation_of_program(self, program):
Expand Down

0 comments on commit 9af439a

Please sign in to comment.