diff --git a/tests/workspace/test_people.py b/tests/workspace/test_people.py index 3c49cb4..6d5b441 100644 --- a/tests/workspace/test_people.py +++ b/tests/workspace/test_people.py @@ -12,21 +12,22 @@ ) -def test_get_person_from_github_username(): - result = TEST_PERSON_DICT.by_github_username("the_real_bob") +class TestPersonDict: + def test_get_person_from_github_username(self): + result = TEST_PERSON_DICT.by_github_username("the_real_bob") - assert result == BOB + assert result == BOB + def test_get_person_from_github_username_returns_default(self): + result = TEST_PERSON_DICT.by_github_username("TestUser") -def test_get_person_from_github_username_returns_default(): - result = TEST_PERSON_DICT.by_github_username("TestUser") + assert result.human_readable == "TestUser" + assert result.github_username == "TestUser" + assert result.slack_username == "TestUser" - assert result.human_readable == "TestUser" - assert result.github_username == "TestUser" - assert result.slack_username == "TestUser" +class TestPerson: + def test_get_formatted_slack_username_returns_slack_user_id(self): + result = ALICE.get_formatted_slack_username() -def test_get_formatted_slack_username_returns_slack_user_id(): - result = ALICE.get_formatted_slack_username() - - assert result == "<@U07GX6L3KLA>" + assert result == "<@U07GX6L3KLA>"