You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
394 B
16 lines
394 B
# test_single_insert.py
|
|
from database import db
|
|
|
|
test_motion = {
|
|
'title': 'Test Motion',
|
|
'description': 'This is a test motion',
|
|
'date': '2024-01-01',
|
|
'policy_area': 'Test',
|
|
'voting_results': {'VVD': 'voor', 'PvdA': 'tegen'},
|
|
'winning_margin': 0.5,
|
|
'url': 'https://test.com/motion1'
|
|
}
|
|
|
|
success = db.insert_motion(test_motion)
|
|
print(f"Insert successful: {success}")
|
|
|
|
|