Beispiel #1
0
def test_store_user(ddb):
    """Test storing user calls correct functions."""
    dbf = DBFacade(ddb)
    test_user = create_test_admin('abc_123')
    dbf.store(test_user)
    ddb.store.assert_called_with(test_user)
Beispiel #2
0
def test_store_team(ddb):
    """Test storing team calls correct functions."""
    dbf = DBFacade(ddb)
    test_team = create_test_team('1', 'brussel-sprouts', 'Brussel Sprouts')
    dbf.store(test_team)
    ddb.store.assert_called_with(test_team)
Beispiel #3
0
def test_store_project(ddb):
    """Test storing project calls correct functions."""
    dbf = DBFacade(ddb)
    test_project = create_test_project('1', ['a'])
    dbf.store(test_project)
    ddb.store.assert_called_with(test_project)