Skip to content
Snippets Groups Projects
Commit e334300e authored by philip.roeggla's avatar philip.roeggla
Browse files

test für schlagworte übergeordnet fallback

parent f933b7da
No related branches found
No related tags found
No related merge requests found
......@@ -239,3 +239,5 @@ async def test_standardnummer():
assert target_dataframe.shape == (2, 2)
assert target_dataframe.at['AC09705420', standardnummer.column] == 'VD18 90551591'
assert target_dataframe.at['AC10438476', standardnummer.column].__repr__() == 'nan'
......@@ -70,3 +70,15 @@ async def test_werktitel_and_achlagworte():
break
assert target_dataframe['Werktitel'].isna().sum() == len(empty)
@pytest.mark.asyncio
async def test_schlagworte_fallback():
session = httpx.AsyncClient()
rr = RecordRetriever([], session=session)
df = pd.DataFrame()
schlag = Schlagworte(df)
record = await rr.get_record_from_ac_number('AC11064890')
result = await schlag.write(record)
assert not (result is None)
assert df.shape == (1, 1)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment