def test_posting_contentless_note(): client = AtomClient(**AUTH) slug = client.add_child('test-fonds', title='Yet another subfonds', level='subfonds', notes=[{'type': 'general', 'content': ''}]) assert client.get_record(slug)['notes'] == []
def test_adding_child_with_note(): client = AtomClient(**AUTH) slug = client.add_child('test-fonds', title='Another subfonds', level='subfonds', notes=[{'type': 'general', 'content': 'This is a test note'}]) assert slug == 'another-subfonds'
def test_posting_contentless_note(): client = AtomClient(**AUTH) slug = client.add_child( "test-fonds", title="Yet another subfonds", level="subfonds", notes=[{"type": "general", "content": ""}], ) assert client.get_record(slug)["notes"] == []
def test_adding_child_with_note(): client = AtomClient(**AUTH) slug = client.add_child( "test-fonds", title="Another subfonds", level="subfonds", notes=[{"type": "general", "content": "This is a test note"}], ) assert slug == "another-subfonds"
def test_add_child_resource_component(): client = AtomClient(**AUTH) slug = client.add_child("second-subfonds", title="Test child", level="item") assert slug == "test-child"
def test_add_child_resource(): client = AtomClient(**AUTH) slug = client.add_child("test-fonds", title="Second subfonds", level="subfonds") assert slug == "second-subfonds"
def test_add_child_resource_component(): client = AtomClient(**AUTH) slug = client.add_child('second-subfonds', title='Test child', level='item') assert slug == 'test-child'
def test_add_child_resource(): client = AtomClient(**AUTH) slug = client.add_child('test-fonds', title='Second subfonds', level='subfonds') assert slug == 'second-subfonds'