Suppress Cron when testing

This commit is contained in:
2024-06-04 10:28:34 +02:00
parent 0a38bb951b
commit 079e405942
3 changed files with 11 additions and 6 deletions

View File

@ -157,9 +157,12 @@ async def test_url_anweisung_whitebox(app):
:param app:
"""
with app.app_context():
rapla = await fetchRAPLA.getNewRapla("http://www.rapla.dhbw-karlsruhe.de/rapla?page=calendar&user=vollmer"
raplaPage = await fetchRAPLA.getNewRapla("http://www.rapla.dhbw-karlsruhe.de/rapla?page=calendar&user=vollmer"
"&file=tinf22b3", True)
assert "TINF22B3" in rapla
assert "TINF22B3" in raplaPage
raplaFile = await fetchRAPLA.getNewRapla("http://www.rapla.dhbw-karlsruhe.de/rapla?page=ical&user=vollmer"
"&file=tinf22b3", True)
assert "TINF22B3" in raplaFile
@pytest.mark.asyncio()