def test_scrum(monkeypatch): monkeypatch.setattr(cli, 'pretty_date', lambda: 'Oct 27, 2013') assert (cli.scrum('Test', [StoryFactory()], [StoryFactory()]) == [ '\x1b[1m\x1b[37mTest SCRUM -- Oct 27, 2013\x1b[0m', '', '\x1b[1m\x1b[37mSome P\xf8rson\x1b[0m', ' #42 [* ] bug F\xf8\xf8', '', '\x1b[1m\x1b[37mBugs\x1b[0m', ' #42 SP F\xf8\xf8' ])
def test_scrum_with_state(monkeypatch): monkeypatch.setattr(cli, 'pretty_date', lambda: 'Oct 27, 2013') assert (cli.scrum('Test', [StoryFactory(story_type='feature', state='finished')], [StoryFactory()]) == [ '\x1b[1m\x1b[37mTest SCRUM -- Oct 27, 2013\x1b[0m', '', '\x1b[1m\x1b[37mSome P\xf8rson\x1b[0m', (' #42 [* ] feature ' '\x1b[1m\x1b[37mfinished\x1b[0m: F\xf8\xf8'), '', '\x1b[1m\x1b[37mBugs\x1b[0m', ' #42 SP F\xf8\xf8' ])