ensure datasources are always DataSource objects

This commit is contained in:
evilchili
2023-12-22 23:09:43 -08:00
parent bd5e35dfff
commit 15904a51d2
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -205,5 +205,6 @@ def test_text():
def test_as_dict():
ds = tables.RollTable([fixture_metadata + fixture_source]).datasources[0].as_dict()
assert ds['Option 1']['Header 1'] == 'Option 1'
source = tables.RollTable([fixture_no_descriptions]).datasources[0]
ds = source.as_dict()
assert ds['option 1']['choice'] == 'choice 1'