Commit graph

37 commits

Author SHA1 Message Date
Hugo Osvaldo Barrera
164559ad7a Remove references to obsolete event_loop fixture
It's gone from the latest pytest-asyncio.
2025-08-25 17:12:21 +02:00
Hugo Osvaldo Barrera
688d6f907f Update deprecated usages of hypothesis 2024-12-09 01:30:44 +01:00
Hugo Osvaldo Barrera
42c5dba208 Pre-commit autoupdate 2024-01-31 19:08:25 +01:00
Hugo Osvaldo Barrera
b50f9def00 Ensure type annotations are backwards compatible
Related: https://github.com/pimutils/todoman/issues/544
2023-10-29 16:04:23 +01:00
Hugo Osvaldo Barrera
b61095ad47 Async fixtures must be marked as such
pytest_asyncio now uses strict mode by default.
2022-09-20 23:01:47 +02:00
pre-commit-ci[bot]
2c551afafb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-12-06 20:14:52 +00:00
Hugo Osvaldo Barrera
cf1d082628 Use context managers for aio connectors
Not sure why we didn't do this initially, but this ensures that we
always close all connectors properly, and also gives much clearer scope
regarding their life-cycles.
2021-08-16 21:40:11 +02:00
Hugo Osvaldo Barrera
5b8f00e720 Sort imports 2021-07-25 18:35:47 +02:00
Hugo Osvaldo Barrera
1a1f6f0788 Initial async support
Add asyncio to the storage backends and most of the codebase. A lot of
it merely uses asyncio APIs, but still doesn't actually run several
things concurrently internally. Further improvements will be added on
top of these changes

Thanks to  Thomas Grainger (@graingert) for a few useful pointers
related to asyncio.
2021-06-26 13:40:35 +02:00
Hugo Osvaldo Barrera
d2d41e5df1 Use black to auto-format the codebase 2021-05-06 19:28:54 +02:00
Hugo Osvaldo Barrera
b1b4dd92fe Sort imports
I don't want to ever have to sort imports again. It's a poor use of
developer time. Automate this with a pre-commit hook, and check this on
CI.

Developers: I suggest you configure your editor to use
`reorder_python_imports`. It uses the standard sorting, and detects
first/third party libs well.
2020-06-09 14:34:45 +02:00
Hugo Osvaldo Barrera
3037c15a65 Use hypothesis setting load_profile to setup health check
Fixes #779
2020-06-08 19:58:35 +02:00
Hugo Osvaldo Barrera
308289febf Remove python2 leftover code 2020-06-08 18:40:33 +02:00
Hugo Osvaldo Barrera
a26d3bb58c Update hypothesis 2020-06-08 18:40:33 +02:00
Hugo Osvaldo Barrera
558da29e5e Use the syntax hypothesis accepts 2020-06-08 13:26:39 +02:00
Markus Unterwaditzer
97f58ddc46 Disable health checks for distro builds 2018-02-05 17:01:37 +01:00
Jelmer Vernooij
01c88b514c Set defaults for CI and DETERMINISTIC_TESTS. (#653)
This makes it a bit easier to manually run individual tests.
2017-07-19 21:40:52 +02:00
Markus Unterwaditzer
10490a12f1 Unconditionally disable HealthCheck.too_slow 2017-02-18 15:45:06 +01:00
Markus Unterwaditzer
18d8bb9fc2 Remove Python 2 support (#499)
* Discontinue Python 2.

See #219

* Remove Python 2 config option

* Remove coerce_native

* Remove PY2 variable

* s/text_type/str/g

* Flake8 fixes

* Remove str = str

* s/to_native/to_unicode/g

* Remove to_unicode = to_unicode

* Remove iteritems

* Remove itervalues

* Remove str import, flake8 fixes

* Remove urlparse compat code

* Remove with_metaclass

* Remove unused PY2 variable

* Remove getargspec_ish

* Remove to_bytes

* Remove compat module

* Remove Python 2 from Travis

* fixup! Remove urlparse compat code

* fixup! Remove urlparse compat code

* fixup! Remove compat module
2016-09-08 12:18:36 +02:00
Markus Unterwaditzer
fc3e823b6b Use os.environ instead of getenv
None.lower() fails too, but KeyError() is a nicer errormessage
2016-05-02 16:50:19 +02:00
Markus Unterwaditzer
96c90af1e3 Add flag about Py2 monkeypatch for tests 2016-04-29 19:04:14 +02:00
Markus Unterwaditzer
ea17f2ac01 Show error for Python 2 users (#441)
* Show error for Python 2 users

The error can be disabled with a config option.

See #219
2016-04-28 16:44:17 +02:00
Markus Unterwaditzer
862bf24e6b The dumbest bug fix 2016-03-22 22:47:16 +01:00
Markus Unterwaditzer
88df14a724 Testing: Tolerate slowness in CI 2016-03-10 13:46:44 +01:00
Hugo Osvaldo Barrera
bac0966814 Replace instances of envvar TRAVIS with CI 2016-03-04 12:32:50 -03:00
Markus Unterwaditzer
13af5ffbaf Replace CI with TRAVIS 2016-03-04 15:07:55 +01:00
Markus Unterwaditzer
e244eecc52 Stylefixes 2016-03-04 15:07:55 +01:00
Hugo Osvaldo Barrera
1ede6884b7 Allow running deterministic tests 2016-03-04 15:07:55 +01:00
Markus Unterwaditzer
b12660f1a8 Warn when running under Python 2
See #219
2016-01-24 19:35:37 +01:00
Markus Unterwaditzer
4f7589ca7f Fix logging 2015-08-18 21:25:19 +02:00
Markus Unterwaditzer
6e1846ea9d Remove custom ctx global 2015-08-16 19:40:00 +02:00
Markus Unterwaditzer
a559021447 Add benchmarks 2015-03-03 21:25:54 +01:00
Markus Unterwaditzer
5ce0d97f91 Remove copyright headers 2015-01-21 13:02:30 +01:00
Markus Unterwaditzer
3abebde87f Fix logging in test suite 2014-07-05 01:07:23 +02:00
Markus Unterwaditzer
633a7de28c Some rewrites to requests handling
Conflicts:
	tests/storage/test_http.py
	vdirsyncer/storage/dav.py
2014-04-11 15:27:31 +02:00
Markus Unterwaditzer
d14dfcd5f8 More copyright headers
[ci skip]
2014-04-01 21:09:40 +02:00
Markus Unterwaditzer
4e1371e561 Globally log requests 2014-03-29 17:52:57 +01:00