Skip to content
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

Unit tests fail if nicks.csv does not exist #56

Open
zxiiro opened this issue Apr 13, 2015 · 0 comments
Open

Unit tests fail if nicks.csv does not exist #56

zxiiro opened this issue Apr 13, 2015 · 0 comments

Comments

@zxiiro
Copy link

zxiiro commented Apr 13, 2015

Before a contributor can run unit tests it is assumed that the user has a created a nicks.csv file in their WelcomeBot directory. Proper unit tests should create required files in the setUp() function and remove them during tearDown().

Traceback (most recent call last):
  File "test_bot.py", line 41, in setUp
    self.bot = botcode.Bot()
  File "bot.py", line 25, in __init__
    with open(self.nick_source, 'rb') as csv_file:
IOError: [Errno 2] No such file or directory: 'nicks.csv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant