Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bvreede committed Nov 1, 2023
1 parent b3dcac2 commit a8b7995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/corpus/test_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ def test_instantiate(self, my_convo, convo_utts, convo_meta):
assert isinstance(new_convo, Conversation)
# cannot instantiate an empty conversation
with pytest.raises(TypeError):
Conversation() #noqa E1120
Conversation() # noqa no-value-for-parameter
# A conversation without metadata still has metadata property
new_convo = Conversation(utterances=convo_utts)
assert new_convo.metadata == {}
# A conversation cannot be instantiated with utterances not of Utterance class
# A Conversation can't be instantiated with utterances not of Utterance class
with pytest.raises(TypeError, match="type Utterance"):
Conversation(utterances="Not an Utterance")
with pytest.raises(TypeError, match="type Utterance"):
Expand Down

0 comments on commit a8b7995

Please sign in to comment.