Skip to content

Release/v0.10.20 #612

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

Merged
merged 6 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

# 0.10.20
1. Clinic list update
([#596](https://github.com/praekeltfoundation/ndoh-hub/pull/596))
([#597](https://github.com/praekeltfoundation/ndoh-hub/pull/597))
([#598](https://github.com/praekeltfoundation/ndoh-hub/pull/598))
2. Bump djangorestframework from 3.14.0 to 3.15.2
([#599](https://github.com/praekeltfoundation/ndoh-hub/pull/599))
3. Bump django from 4.2.13 to 4.2.14
([#600](https://github.com/praekeltfoundation/ndoh-hub/pull/600))
4. CAPI backend change
([#601](https://github.com/praekeltfoundation/ndoh-hub/pull/601))
([#602](https://github.com/praekeltfoundation/ndoh-hub/pull/602))
([#603](https://github.com/praekeltfoundation/ndoh-hub/pull/603))
([#604](https://github.com/praekeltfoundation/ndoh-hub/pull/604))
([#605](https://github.com/praekeltfoundation/ndoh-hub/pull/605))
([#606](https://github.com/praekeltfoundation/ndoh-hub/pull/606))
([#607](https://github.com/praekeltfoundation/ndoh-hub/pull/607))
([#608](https://github.com/praekeltfoundation/ndoh-hub/pull/608))
([#609](https://github.com/praekeltfoundation/ndoh-hub/pull/609))
([#610](https://github.com/praekeltfoundation/ndoh-hub/pull/610))
([#611](https://github.com/praekeltfoundation/ndoh-hub/pull/611))

# 0.10.19
1. Add timestamp to queue
([#592](https://github.com/praekeltfoundation/ndoh-hub/pull/592))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,23 @@ def test_invalid_arguments(self):
self.assertRaises(Exception, self.call_command, "InvalidModel")

def test_delete_events(self):
running_month = timezone.now() - relativedelta(months=12, hour=12)
running_month = timezone.now() - relativedelta(days=365, hour=12)

for i in range(12):
self.create_record(Event, i, running_month)
running_month = running_month + relativedelta(months=1)
running_month = running_month + relativedelta(days=31)

self.call_command("Event", 6)

self.assertEqual(Event.objects.count(), 6)

def test_delete_messages(self):
running_month = timezone.now() - relativedelta(months=12, hour=12)
running_month = timezone.now() - relativedelta(days=365, hour=12)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erikh360 I'm not sure how to handle leap years or months ending on the 29/30th

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine for now


for i in range(12):
self.create_record(Message, i, running_month)
running_month = running_month + relativedelta(months=1)
running_month = running_month + relativedelta(days=31)
print(f" running month: {running_month}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the print please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the print, I'm going to merge now.


self.call_command("Message", 6)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="ndoh-hub",
version="0.10.19",
version="0.10.20",
url="http://github.com/praekeltfoundation/ndoh-hub",
license="BSD",
author="Praekelt Foundation",
Expand Down
Loading