Skip to content

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

@zxiiro

Description

@zxiiro

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions