Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Conversation

@idrysdale
Copy link
Contributor

No description provided.

Paul Fawkesley and others added 6 commits December 5, 2019 10:07
back in 9c483376e4a562bbf0102a7b562695476fbd4699 I factored out
AssertErrorMixin, allowing tests to call `self._assert_error(..)`

Unfortunately this broke pytest's nice verbose assertion messages so
they look like this:

```
    def _assert_error(self, response, expected_status, expected_detail):
>       assert expected_status == response.status_code
E       AssertionError
```

this change means pytest knows to include AssertErrorMixin when it's
rewriting assertion code, so it looks like this again:

```
```
Sometimes the tests failed due to users existing in the test
database from other tests. Introducing pytestmark states that
each test in the file should run in it's own transaction.
add a new permissions class IsAdminOfAnyOrganisation
@fawkesley fawkesley force-pushed the list-users-endpoint branch from 4f3f6b7 to 524672f Compare December 5, 2019 10:21
@fawkesley fawkesley merged commit 3212c61 into master Dec 5, 2019
@fawkesley fawkesley deleted the list-users-endpoint branch December 5, 2019 10:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants