You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The files test_nicks.csv and nicks.csv are overwritten during test execution. Proper unittests should not modify the user's environment. Would recommend using something like tempfile [1] to create temporary files for testing.
Steps to reproduce:
touch nicks.csv
modify test_nicks.csv
python -m unittest test_bot
test_nicks.csv and nicks.csv is overwritten with test data
The files test_nicks.csv and nicks.csv are overwritten during test execution. Proper unittests should not modify the user's environment. Would recommend using something like tempfile [1] to create temporary files for testing.
Steps to reproduce:
[1] https://docs.python.org/2/library/tempfile.html
The text was updated successfully, but these errors were encountered: