Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Steve Jalim 31f1d242ca
Get Pocket-mode integration tests working again (#11627)
This changeset unskips the Pocket About page tests and uses a new fixture
to provide a Pocket-specific base URL against which to test, drawn from the
env. This means we can run the Pocket integration tests at the same time
as the Mozorg/bedrock ones, and all will be run on the relevant test server.

A pocket_mode pytest mark has been added, too, but isn't relied upon at the
moment for anything.
2022-05-13 16:02:17 +01:00
Paul McLanahan c92de71516 Update main branch references to www-config repo 2022-04-15 14:49:12 -04:00
Rob Hudson 42055fe4c5
Bump pre-commit libs and fixes (#11251) 2022-02-24 15:32:11 -08:00
Steve Jalim 010e739f14
Improve Contentful-related test coverage - part 2 of n (#10805)
* 10639: Backfill tests for templatetag-helpers

* Backfilling more Contentful-related tests

* Update pytest config to declare custom markers: less noise when running tests

* 10639: Fix up patching to remedy test failures in CI

* 10639: Minor fixups following code review

* 10639: Fix test regression following rebase on mozilla/master

* 10639: Update test to recognise that calling a naked mozilla.org domain will result in a redirect, making the old test inaccurate
2021-11-23 11:11:02 +00:00
Rob Hudson f5c98cf462
Remove old L10n machinery (#10660) 2021-11-17 11:18:52 -08:00
Steve Jalim d5376bf80c NOTICKET: Add paul-mclendahand config to bedrock
https://github.com/willkg/paul-mclendahand makes maintenance-PR handling so much easier than one-by-one

This changeset adds a default config to make it pretty much instant to use after installation.

Note that this addition doesn't specify which remote to use, so we may need to tune this if 'origin' means different things to different contributors.
2021-10-08 14:07:03 +01:00
Paul McLanahan 93f3211d00 Add pre-commit hooks configuration and docs
See https://pre-commit.com/ for details
2021-10-01 11:33:05 +01:00
Rob Hudson e8325a7944 Add black configuration for Python formatting 2021-09-30 16:03:35 -04:00
Axel Hecht c6e574ea58 settle recipe location 2019-12-20 16:17:23 -05:00
Chris Beaven bf67e8bf34 Django 2.2 (#7196)
* Complete removal of nose test artifacts

* Update base requirements to Django 2.2 and python 3 compatibile packages
2019-07-03 02:24:42 -05:00
Chris Beaven aae1cf1d3d Complete removal of nose test artifacts 2019-05-02 10:32:03 -04:00
Paul McLanahan 103cd86a0d Run all python tests in docker in circleci 2016-10-05 11:16:55 -04:00
alexgibson ef2efba326 Update pytest to v3.0.1
- pytest-django v3.0.0
- pytest-html v1.10.0
- pytest-selenium v1.3.1
- pytest-xdist v1.15.0
- pytest-rerunfailures v2.0.1
2016-08-25 09:28:24 +01:00
alexgibson 7992fcc00a Exclude tests/pages when collecting nose tests 2016-05-16 19:17:04 +01:00
Alex Gibson a8f5318d89 Mark bedrock-prod as sensitive URL for functional tests 2016-03-09 09:54:05 +00:00
Dave Hunt 656ef73c60 Move the redirect tests into the tests directory and consolidate with the tests from mcom-tests 2016-01-26 15:23:03 +00:00
Dave Hunt 2005b28524 Create initial functional tests using pytest 2015-10-15 10:37:45 +01:00
Paul McLanahan 52c9b40781 Bug 1200354: Add decorator support to redirects helper.
* Remove pytest-xdist from standard run.  It's slower than normal if testing the local server.
* Add recommendation to use it if testing a remote instance to README.
* Remove pytest.ini in favor of using setup.cfg.
* Fix tests after redirects modification.
* Add py to redirects requirements.
2015-09-16 16:12:14 -07:00
Paul McLanahan 22a2e276e5 Update all urls.py files to avoid deprecated function.
Using `patterns` is deprecated, and just using an iterable is no
preferred.
2015-09-16 15:52:24 -07:00
Paul McLanahan a2d4a59b49 No longer ignore migrations for flake8 tests.
Django migrations are decently compliant, while South
migrations were very not.
2015-06-17 23:16:29 -04:00
Paul McLanahan ac92ee09bb Fix bug 1005881: Move tweets cache to the DB.
This will fix wonkyness with the fact that our
two datacenters have separate memcached servers.
2014-06-16 11:14:50 -04:00
Paul McLanahan dd053e75ef Add line length checking to flake8.
Throws warnings at 150 characters. Anything beyond that
in a python file is a bit over the top.

Also clean up the grants data a lot.
2013-09-11 11:06:52 -04:00
Dan Poirier 7518b4f802 Bug 910894 - Cleanup pep8 violations and have jenkins run flake8
Add flake8 to requirements
2013-09-03 11:10:47 -04:00