mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-01-30 17:14:53 +01:00
2197e07213
* fixed visualization * simplified tests * split into files * refactored test expected publications * split update tests * expanded specifications and tests * added event_status window tests * fixed 'all' command * renamed everything * fixed uppercase * refactored main and publisher to add notifications * tested report successful * added tests to publisher coordinator * added more coordinator tests * test coordinator success
23 lines
676 B
Python
23 lines
676 B
Python
def test_are_credentials_valid(test_event, mock_publisher_valid):
|
|
assert mock_publisher_valid.are_credentials_valid()
|
|
|
|
|
|
def test_are_credentials_valid_false(mock_publisher_invalid):
|
|
assert not mock_publisher_invalid.are_credentials_valid()
|
|
|
|
|
|
def test_is_event_valid(mock_publisher_valid):
|
|
assert mock_publisher_valid.is_event_valid()
|
|
|
|
|
|
def test_is_event_valid_false(mock_publisher_invalid):
|
|
assert not mock_publisher_invalid.is_event_valid()
|
|
|
|
|
|
def test_is_message_valid(mock_publisher_valid):
|
|
assert mock_publisher_valid.is_message_valid()
|
|
|
|
|
|
def test_is_message_valid_false(mock_publisher_invalid):
|
|
assert not mock_publisher_invalid.is_message_valid()
|