Wolfmyths / Myth-Mod-Manager

An easy way to swap and manage Payday 2 mods outside the game
https://modworkshop.net/mod/43276
MIT License
9 stars 4 forks source link

Implementing PyTest Question #38

Closed Wolfmyths closed 1 year ago

Wolfmyths commented 1 year ago

I am planning to implement PyTest into Myth Mod Manager, this is my first time using PyTest.

So far its been going well except for a major issue that I am having a hard time finding an answer for.

Myth Mod Manager uses multiple data files to save user data mod.ini, profiles.json, config.ini.

I want to test different widgets in Myth Mod Manager but this will trigger the "save data" function for whatever needs to be saved, is there a way to ignore this call during tests? Or make the functions point to mock data save files?