Expire member cli and api #33
Merged
merenber
merged 11 commits from expire-member
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'expire-member'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Closes #23
Still missing cli tests ;_;
WIP: Expire member cli and apito Expire member cli and api 1 year ago@merenber tests added
72e3fdbaf6
toed9dc28a2b
1 year agoLooks great - please see comments for requested changes.
is_club_rep: Union[bool, None] = None,
is_club: bool = False,
ldap3_entry: Union[ldap3.Entry, None] = None,
shadowExpire: bool = False,
This should be an integer. shadowExpire is a Unix epoch timestamp.
mail_local_addresses=attrs.get('mailLocalAddress'),
is_club_rep=attrs.get('isClubRep', [False])[0],
is_club=('club' in attrs['objectClass']),
shadowExpire=attrs.get('shadowExpire', 0) != 0,
See comment above.
pytest==6.2.4
aiosmtpd==1.4.2
aiohttp==3.7.4.post0
freezegun==1.1.0
If you merge the current master branch, you'll see that the Term class now uses a
get_current_datetime
function which can be mocked out using the standardpatch
function in the Python unittest library. (There are some tests which already use this which you can as examples.)Could we please use this instead? Sorry for the late notice.
@pytest.fixture(scope='module')
@pytest.fixture(scope='function')
I added a
new_user
pytest fixture in conftest.py. Could you use that instead of changing the scope of this fixture?6a1628da1e
toe76731fb4b
1 year agob4110d887d
into master 1 year agoReviewers
b4110d887d
.