Skip to content

Commit 45c6abe

Browse files
author
Alex Meadows
committed
process_tracker_python-100 Add source/source object character set
🐛 Fixed issue where file path for config file was not setting correctly Issue was found where if the config file was named anything but 'process_tracker_config.ini' it would try to append that to the end. Have added a new filter to ensure that any file that ends with '.ini' can be accepted.
1 parent 37306c8 commit 45c6abe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ before_script:
1515
- mkdir $HOME/.process_tracker
1616
- if [[ ! -z "$DB" ]]; then mv configs/${DB}_config.ini $HOME/.process_tracker/process_tracker_config.ini; fi
1717
- cp configs/process_tracker_config_dev.ini $HOME/.process_tracker/process_tracker_config_dev.ini
18-
- mkdir /tmp/testing
19-
- cp configs/process_tracker_config_dev.ini /tmp/testing/process_tracker_config_dev.ini
2018
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_account_create.sql -U postgres; fi
2119
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker.sql process_tracker -U postgres; fi
2220
- if [[ "$DB" == "postgres" ]]; then psql -f dbscripts/postgresql_process_tracker_defaults.sql process_tracker -U postgres; fi

tests/utilities/test_settings_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def test_config_location_set_with_ini_file(self):
6363
:return:
6464
"""
6565

66-
expected_result = "/tmp/testing/process_tracker_config_dev.ini"
66+
expected_result = "/home/travis/.process_tracker/process_tracker_config_dev.ini"
6767

6868
given_result = SettingsManager(
69-
config_location="/tmp/testing/process_tracker_config_dev.ini"
69+
config_location="/home/travis/.process_tracker/process_tracker_config_dev.ini"
7070
).config_file
7171

7272
self.assertEqual(expected_result, given_result)

0 commit comments

Comments
 (0)