Skip to content

Commit

Permalink
Fix for test_periodic_data_template_create_and_download
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-kellton committed Oct 3, 2024
1 parent 4dee570 commit 31620e4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def test_periodic_data_template_details(
in pagePeriodicDataUpdateTemplates.getTemplateNumberOfIndividuals(0).text
)

@pytest.mark.night
def test_periodic_data_template_create_and_download(
self,
program: Program,
Expand Down Expand Up @@ -292,10 +291,9 @@ def test_periodic_data_template_create_and_download(

pageIndividuals.getDownloadBtn(periodic_data_update_template.pk).click()
periodic_data_update_template.refresh_from_db()
user_path = os.path.expanduser("~")
assert (
pageIndividuals.check_file_exists(
os.path.join(user_path, "Downloads", periodic_data_update_template.file.file.name)
os.path.join(settings.DOWNLOAD_DIRECTORY, periodic_data_update_template.file.file.name)
)
is True
)

0 comments on commit 31620e4

Please sign in to comment.