Conversation
|
One had not been updated since #1024 and the other tried to access self.settings, but that had only been saved to App.settings so changed that. |
|
OK thank you - I have read through the changes you have made to learn from it. |
|
Thank you for implementing these test, Viktor! |
|
@kaixxx I agree. Didn't see the The check for expected keys in config.ini I tried to keep as close as possible to as it was, but as is the value from it is quite low to the maintenance cost of keeping the |
|
That would be my fault, based on what I originally did, when trying to work out how testing was done. |
|
@VRehnberg What do you think about using |
@kaixxx I haven't really looked that much at the code so can't answer on particularts. But roughly it depends on the purpose of the tests.
So to take this looks like a unit test. You want to check So in short, if However, the config.ini in fixtures can probably be replaced by getting self.settings from whatever creates the default values of the config file (I didn't find this so I was sloppy). That said, there is some value in having some config files to run tests on, but these should be from specific releases to the regression testing/testing backwards compatibility. |
Solves #1054
I'm actually only using one of the example config.ini files, but I figured I'd include both with and without AI for that specific version to make it easier for future testing.