def test_none_removeVisitor(self, table_name, visitor): client = DynamoClient(table_name) result = client.removeVisitor(visitor) assert 'error' in result.keys() assert result['error'] == f'Visitor not in table { visitor }'
def test_removeVisitor(self, table_name, visitor): client = DynamoClient(table_name) client.addVisitor(visitor) result = client.removeVisitor(visitor) assert 'visitor' in result.keys() assert result['visitor'] == visitor