Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for test_periodic_data_template_create_and_download #4284

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
)
Loading