Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions stix2/test/v20/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def test_datastore_related_to_raises():


def test_datastore_add_raises():
with pytest.raises(AttributeError) as excinfo:
with pytest.raises(AttributeError):
DataStoreMixin().add(CAMPAIGN_MORE_KWARGS)
assert "DataStoreMixin has no data sink to put objects in" == str(excinfo.value)


def test_composite_datastore_get_raises_error():
Expand Down
3 changes: 1 addition & 2 deletions stix2/test/v21/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def test_datastore_related_to_raises():


def test_datastore_add_raises():
with pytest.raises(AttributeError) as excinfo:
with pytest.raises(AttributeError):
DataStoreMixin().add(CAMPAIGN_MORE_KWARGS)
assert "DataStoreMixin has no data sink to put objects in" == str(excinfo.value)


def test_composite_datastore_get_raises_error():
Expand Down
Loading