예제 #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)
예제 #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)
예제 #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)