-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests failing on test_get_user_dict #2
Comments
Hi Huw, By reading your error log, I think this error related to the PPMS preparation session. In addition you probably need to fix a small glitch on csv format when creating the cached responses: 1, prepare PPMS: (https://github.com/imcf/pyppms/blob/main/TESTING.md#ppms-preparations)
2, I think when creating the cached responses, the csv python library create a new line at end of every line? You can open one to check in the created stage_0 folder As a consequence, the .txt files containing those info pulled from PPMS have empty line in between contents. And sometimes this empty lines cause certain function to create empty object that resulting in error. This type of error, for instance, could look like this: KeyError: 'User [] is unknown to PPMS' Cheers, Greeting from your old colleague |
Hi,
First, many thanks for developing this package - I was looking for a convenient way to pull information from our PPMS, and thought I would try this.
I tried running the tests, starting just in offline mode, but I'm getting a failure on test_get_user_dict:
pyppms test error.txt
I wondered if, running on Windows, I might need to change the format of the paths to the cached responses? Or do I need to set the ppms required values, even before running the online test?
Many thanks for any help.
Huw
The text was updated successfully, but these errors were encountered: