-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import unittest | ||
from bombard.request_logging import setup_logging | ||
import logging | ||
from tests.stdout_capture import CaptureOutput | ||
from tests.fake_args import FakeArgs | ||
from bombard.main import start_campaign | ||
|
||
|
||
EMPTY_BOOK = {} | ||
|
||
class TestCampaignCheck(unittest.TestCase): | ||
def setUp(self): | ||
setup_logging(logging.DEBUG) | ||
|
||
def testSimplest(self): | ||
with CaptureOutput(capture=True) as captured: | ||
start_campaign(FakeArgs(example='simplest'), EMPTY_BOOK) | ||
self.assertIn( | ||
'You should have at least one of "prepare" and "ammo"', | ||
captured.output | ||
) | ||
|