Commit Graph

92 Commits

Author SHA1 Message Date
pyup-bot
8371b7269f Update pytest-xdist from 1.23.1 to 1.23.2 2018-09-28 11:50:19 +01:00
pyup-bot
98162741aa Update coveralls from 1.5.0 to 1.5.1 2018-09-28 06:34:16 +01:00
pyup-bot
0bd15aa50d Update pytest-xdist from 1.23.0 to 1.23.1 2018-09-25 20:50:16 +01:00
pyup-bot
ba0ba29907 Update pytest from 3.8.0 to 3.8.1 2018-09-22 21:50:08 +01:00
pyup-bot
85807c8140 Update pytest from 3.7.4 to 3.8.0 2018-09-06 14:47:33 +01:00
pyup-bot
0bd3883378 Update pytest-cov from 2.5.1 to 2.6.0 2018-09-04 01:30:27 +01:00
pyup-bot
7765f732a1 Update coveralls from 1.4.0 to 1.5.0 2018-08-31 06:33:21 +01:00
Chris Hill-Scott
6be90f4d8a Merge pull request #2264 from alphagov/pyup-update-pytest-3.7.3-to-3.7.4
Update pytest to 3.7.4
2018-08-30 09:31:36 +01:00
pyup-bot
2328075924 Update pytest from 3.7.3 to 3.7.4 2018-08-29 22:32:18 +01:00
pyup-bot
3cfe5a07e5 Update coveralls from 1.3.0 to 1.4.0 2018-08-29 16:32:24 +01:00
Chris Hill-Scott
8546d1b62b Merge pull request #2256 from alphagov/pyup-update-pytest-3.7.2-to-3.7.3
Update pytest to 3.7.3
2018-08-29 11:44:45 +01:00
pyup-bot
d120e6069c Update pytest from 3.7.2 to 3.7.3 2018-08-26 21:47:12 +01:00
pyup-bot
5a440ebd89 Update pytest-xdist from 1.22.5 to 1.23.0 2018-08-25 06:04:09 +01:00
pyup-bot
2a06748a32 Update pytest from 3.7.1 to 3.7.2 2018-08-18 16:46:56 +01:00
pyup-bot
8ccbbd1df0 Update beautifulsoup4 from 4.6.1 to 4.6.3 2018-08-12 17:49:43 +01:00
pyup-bot
8d95673349 Update pytest from 3.7.0 to 3.7.1 2018-08-02 20:47:56 +01:00
pyup-bot
369ad2b457 Update pytest from 3.6.4 to 3.7.0 2018-07-31 02:16:50 +01:00
Chris Hill-Scott
9490c791dd Merge pull request #2187 from alphagov/pyup-update-beautifulsoup4-4.6.0-to-4.6.1
Update beautifulsoup4 to 4.6.1
2018-07-30 11:31:09 +01:00
Chris Hill-Scott
bbf710c0a6 Merge pull request #2185 from alphagov/pyup-update-pytest-xdist-1.22.2-to-1.22.5
Update pytest-xdist to 1.22.5
2018-07-30 10:38:36 +01:00
pyup-bot
b278382d92 Update beautifulsoup4 from 4.6.0 to 4.6.1 2018-07-29 00:49:48 +01:00
pyup-bot
7f82cc9fbb Update pytest from 3.6.3 to 3.6.4 2018-07-28 18:15:46 +01:00
pyup-bot
9c2bca8b82 Update pytest-xdist from 1.22.2 to 1.22.5 2018-07-28 14:03:45 +01:00
pyup-bot
a90a04200f Update pytest from 3.6.2 to 3.6.3 2018-07-04 23:44:06 +01:00
pyup-bot
9c5cfd957f Update pytest from 3.6.1 to 3.6.2 2018-06-20 13:25:32 +01:00
pyup-bot
881ee1bf97 Update httpretty from 0.9.4 to 0.9.5 2018-06-06 18:12:07 +01:00
pyup-bot
3e4f5ebef3 Update pytest from 3.6.0 to 3.6.1 2018-06-05 13:14:32 +01:00
pyup-bot
ca7b664f0e Update pytest from 3.5.1 to 3.6.0 2018-05-23 11:59:31 +01:00
pyup-bot
70420eded5 Update pytest-mock from 1.9.0 to 1.10.0 2018-05-01 18:43:57 +01:00
pyup-bot
20deb54d14 Update httpretty from 0.8.14 to 0.9.4 2018-04-28 07:25:52 +01:00
pyup-bot
3952b62e2e Update pytest from 3.5.0 to 3.5.1 2018-04-25 00:01:47 +01:00
pyup-bot
b41a42daf4 Update pytest-mock from 1.8.0 to 1.9.0 2018-04-10 04:27:16 +01:00
pyup-bot
b4dca35430 Update pytest-mock from 1.7.1 to 1.8.0 2018-04-07 05:12:14 +01:00
pyup-bot
3b1a57174d Update pytest from 3.4.2 to 3.5.0 2018-03-23 00:54:53 +00:00
Chris Hill-Scott
8aebe4f717 Merge pull request #1928 from alphagov/pyup-update-freezegun-0.3.9-to-0.3.10
Update freezegun to 0.3.10
2018-03-07 16:27:18 +00:00
Chris Hill-Scott
ebc6772869 Merge pull request #1927 from alphagov/pyup-update-pytest-3.4.1-to-3.4.2
Update pytest to 3.4.2
2018-03-07 16:27:10 +00:00
pyup-bot
6d4b98ee4b Update freezegun from 0.3.9 to 0.3.10 2018-03-06 03:10:31 +00:00
pyup-bot
45b8c59d72 Update pytest from 3.4.1 to 3.4.2 2018-03-06 00:06:32 +00:00
pyup-bot
19d2fb5962 Update coveralls from 1.2.0 to 1.3.0 2018-03-02 23:59:30 +00:00
pyup-bot
435f169c2a Update pytest-mock from 1.7.0 to 1.7.1 2018-03-01 11:17:59 +00:00
Chris Hill-Scott
f3a0c505bd Enforce order and style of imports
Done using isort[1], with the following command:
```
isort -rc ./app ./tests
```

Adds linting to the `run_tests.sh` script to stop badly-sorted imports
getting re-introduced.

Chosen style is ‘Vertical Hanging Indent’ with trailing commas, because
I think it gives the cleanest diffs, eg:
```
from third_party import (
    lib1,
    lib2,
    lib3,
    lib4,
)
```

1. https://pypi.python.org/pypi/isort
2018-02-27 16:35:13 +00:00
pyup-bot
8b2e7d9681 Update pytest-xdist from 1.22.1 to 1.22.2 2018-02-27 10:44:14 +00:00
Katie Smith
1483d0f521 Merge pull request #1882 from alphagov/pyup-update-pytest-xdist-1.22.0-to-1.22.1
Update pytest-xdist to 1.22.1
2018-02-21 11:30:01 +00:00
pyup-bot
65889eeba0 Update pytest from 3.4.0 to 3.4.1 2018-02-20 22:09:48 +00:00
pyup-bot
a3bde8f948 Update pytest-xdist from 1.22.0 to 1.22.1 2018-02-19 22:28:29 +00:00
pyup-bot
11f43988e3 Update pytest-mock from 1.6.3 to 1.7.0 2018-02-16 21:23:23 +00:00
Chris Hill-Scott
3a03f11013 Automatically set environment vars before tests
Sometimes you just wanna run some tests directly using the `pytest`
command. But you’re in a new shell, and have forgotten to do
`source environment_test.sh`. The screen fills with red, and your day
just got a little bit worse.

This commit will stop this from ever happening again, by making the
setting environment variables part of running Pytest. It does this with
a plugin called pytest-env[1].

pytest.ini is the standard way of configuring pytest. Creating this file
where it didn’t exist before changes the behaviour of pytest, in that
it will now look for tests in the same directory as the file, rather
than defaulting to the `tests/` directory. So we also have to explicitly
configure pytest[2] to tell it that it should only look in this
directory. Otherwise it gets lost in the weeds of `node_modules`.

1. https://github.com/MobileDynasty/pytest-env
2. https://docs.pytest.org/en/latest/customize.html#confval-testpaths
2018-02-14 10:43:29 +00:00
pyup-bot
4058a9f45f Update flake8-print from 3.0.1 to 3.1.0 2018-02-11 16:39:14 +00:00
pyup-bot
cea19c7e23 Update pytest from 3.3.2 to 3.4.0 2018-01-30 23:18:53 +00:00
pyup-bot
b4435e5b7f Update pytest-xdist from 1.21.0 to 1.22.0 2018-01-15 13:52:39 +00:00
pyup-bot
3e9e45ee29 Update pytest from 3.3.1 to 3.3.2 2018-01-05 12:46:24 +00:00