Chris Hill-Scott
92aacc1a54
Remove extraneous arguments to super
...
> dont need self.__class__, self in super - that's a python 2.x crutch.
> super() is equivalent
2016-09-12 14:59:53 +01:00
Chris Hill-Scott
5fda35c89d
Make it clear that client do not use __init__
...
The clients never get passed useful values to their `__init__` methods.
Rather the real values are passed through later using the `init_app`
method.
So it should be an error if the client is relying on the values that
get passed to it’s init method. Easiest way to ensure this is by making
the `__init__` method not expect any arguments and passing fake values
to the `Super` call.
2016-09-12 12:18:19 +01:00
Chris Hill-Scott
fa5e5475e9
Update Python client
...
Just so that nobody else has to do it.
Implements:
- [x] https://github.com/alphagov/notifications-python-client/pull/29
Which is a breaking change requiring the renaming of method arguments.
2016-09-08 15:55:07 +01:00
Adam Shimali
a627cf9002
Change activity to view to request 7 days data.
...
Cleaned up filters a bit so that if you want both templates
email and sms is passed.
Added mock assertion to test.
2016-04-28 15:52:20 +01:00
Nicholas Staples
f3210ea992
Functionality added to download all on activity page. All tests passing.
2016-04-19 11:45:36 +01:00
Nicholas Staples
a41dda8884
Working functionality for filtering notifications and all tests passing.
2016-04-04 16:34:06 +01:00
Chris Hill-Scott
2f76ef27ce
Add API client for notifications
...
This commit adds an API client for the notifications endpoints added in:
https://github.com/alphagov/notifications-api/pull/113
2016-03-03 11:15:50 +00:00