Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederporto committed Apr 25, 2024
1 parent e4ff6e6 commit f6442c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions metrics/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .views import get_metrics_and_aggregate_per_project
from django.urls import reverse
from django.contrib.auth.models import Permission
from datetime import datetime, timedelta
from datetime import datetime, timedelta, date
from metrics.templatetags.metricstags import categorize, perc, bool_yesno, is_yesno
from django.utils.translation import gettext_lazy as _

Expand Down Expand Up @@ -610,7 +610,7 @@ def test_export_trimester_report_exports_activities_results_with_number_when_som
report = Report.objects.create(description="Report 1",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
Expand Down Expand Up @@ -646,7 +646,7 @@ def test_export_trimester_report_exports_activities_results_of_main_funding_proj
report = Report.objects.create(description="Report 1",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
Expand Down Expand Up @@ -683,7 +683,7 @@ def test_export_trimester_report_by_area_succeds_if_user_is_authenticated(self):
report = Report.objects.create(description="Report 1",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
Expand Down Expand Up @@ -730,7 +730,7 @@ def test_export_trimester_report_exports_wiki_links_as_wikitext(self):
report = Report.objects.create(description="Report 1",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
Expand Down Expand Up @@ -766,15 +766,15 @@ def test_export_trimester_report_exports_wiki_links_as_wikitext_and_deals_with_d
report = Report.objects.create(description="Report 1",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
links="https://sara-wmb.toolforge.org/calendar\r\nhttps://pt.wikipedia.org/wiki/Wikipedia:Pagina_inicial\r\nhttps://commons.wikimedia.org/wiki/Main_Page\r\nhttps://example.com")
report_2 = Report.objects.create(description="Report 2",
created_by=self.user_profile,
modified_by=self.user_profile,
initial_date=datetime.now().date(),
initial_date=date(2024, 2, 29),
learning="Learnings!" * 51,
activity_associated=self.activity,
area_responsible=area_reponsible,
Expand Down

0 comments on commit f6442c5

Please sign in to comment.