Example #1
0
def test_delete_team(ddb):
    """Test deleting team calls correct functions."""
    dbf = DBFacade(ddb)
    team_name = 'brussel-sprouts'
    dbf.delete(Team, team_name)
    ddb.delete.assert_called_with(Team, team_name)
Example #2
0
def test_delete_user(ddb):
    """Test deleting user calls correct functions."""
    dbf = DBFacade(ddb)
    slack_id = 'abc_123'
    dbf.delete(User, slack_id)
    ddb.delete.assert_called_with(User, slack_id)
Example #3
0
def test_delete_project(ddb):
    """Test deleting project calls correct functions."""
    dbf = DBFacade(ddb)
    project_id = 'brussel-sprouts'
    dbf.delete(Project, project_id)
    ddb.delete.assert_called_with(Project, project_id)