Skip to content

Commit

Permalink
Separate tests by which class they test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerkelly committed Jan 15, 2025
1 parent 4f004cd commit dbb755b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tests/workspace/test_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -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>"

0 comments on commit dbb755b

Please sign in to comment.