Andrey Rakhmatullin
380c2279b9
Converting tests to plain asserts, part 7. ( #6710 )
2025-03-09 20:23:51 +01:00
Andrey Rakhmatullin
a5731c1944
Move most of the test utils inside tests.
2025-03-02 21:04:12 +05:00
Andrey Rakhmatullin
8d92c28a16
Switch to pytest.raises(). ( #6680 )
...
* Switch to pytest.raises().
* Add matches= to broad pytest.raises().
* Adjust the test_nonserializable_object() regex for Python <= 3.11.
* Adjust the test_nonserializable_object() regex for PyPy.
* Adjust other test exception regexes for PyPy.
* Cleanup.
2025-02-27 23:13:04 +05:00
Andrey Rakhmatullin
783b98deda
Make mockserver instances per-class.
2025-02-02 14:10:09 +05:00
Andrey Rakhmatullin
1a0dfbd32e
Reuse mockserver instances in test_feedexport.py.
2025-02-02 13:28:34 +05:00
Andrey Rakhmatullin
cec0aeca58
Bump ruff, switch from black to ruff-format ( #6631 )
2025-01-27 11:07:09 +01:00
anubhav
c03fb2abb8
fix: added feed_options as a keyword argument to GCSFeedStorage. ( #6628 )
2025-01-23 21:06:45 +05:00
Laerte Pereira
14219b1fca
fix: test_s3_export fails with boto3 >= 1.36.0
2025-01-22 07:16:22 -03:00
Andrey Rakhmatullin
c87354cd46
Enable SIM Ruff rules.
2025-01-02 01:03:36 +05:00
Andrey Rakhmatullin
7dd92e6e43
Add pylint rules to ruff, refresh the ignore list of pylint itself ( #6584 )
2024-12-16 09:44:36 +01:00
Andrey Rakhmatullin
1e4c81e9dc
Add Perflint rules to ruff.
2024-12-12 21:03:34 +05:00
Andrey Rakhmatullin
897e124a27
Add flake8-return rules to ruff.
2024-12-12 20:32:25 +05:00
Andrey Rakhmatullin
f4d8d6d8ac
Tidy up noqa comments.
2024-12-10 14:58:45 +05:00
Andrey Rakhmatullin
d85c39f5bc
Deprecation removals. ( #6500 )
...
* Deprecation removals.
* Clean up the default pytest filterwarnings.
* Remove test_get_images_old().
* Redo boto-requiring test filtering.
* Remove an unused function.
* Improve the Crawler.crawl() error message.
* Fix the test.
2024-10-31 18:06:22 +05:00
Andrey Rakhmatullin
c9095ef927
Remove --keep-runtime-typing from pyupgrade.
2024-10-17 21:26:02 +05:00
Andrey Rakhmatullin
d08f559600
Add flake8-type-checking. ( #6413 )
2024-06-25 10:20:59 +02:00
Andrey Rakhmatullin
1c70d3e605
flake8-comprehensions
2024-06-19 23:36:36 +05:00
Andrey Rakhmatullin
feb0b8f7dc
Add pyupgrade.
2024-06-05 22:57:18 +05:00
Adrián Chaves
6fc7827042
Do not close the underlying file from compression plugins ( #6239 )
2024-02-21 14:27:42 +01:00
Andrey Rakhmatullin
c2baf4d0da
Remove a defer.returnValue call.
2024-01-12 18:30:41 +04:00
Rotzbua
0d445a3224
refactor(yield): use `yield from` syntax
2024-01-05 12:30:10 +01:00
Laerte Pereira
38dbd43993
Remove tests not necessary anymore
2023-10-18 06:29:47 -03:00
Laerte Pereira
644ab3af48
Remove support for feed storage backends without feed_options
2023-10-17 22:39:09 -03:00
Andrey Rakhmatullin
1ed9ed4f92
Require pyftpdlib that supports Python 3.12.
2023-10-02 21:33:02 +04:00
Laerte Pereira
b06936f111
Handle Tuple type on getdictorlist method, bump 3.12 python version
2023-08-14 10:33:48 -03:00
Andrey Rakhmatullin
644a71bfd4
Use ftp:// URLs in FTP tests.
2023-08-07 00:17:52 +04:00
Laerte Pereira
b9c32a0cfd
Remove functions deprecated in 2.6.0 ( #5996 )
2023-08-03 17:06:55 +02:00
Kevin Lloyd Bernal
9a1bf40c2f
expose AWS_REGION_NAME in S3FeedStorage
2023-07-24 16:37:52 +08:00
Mikhail Korobov
af2aa4b421
Merge pull request #5847 from namelessGonbai/feat/FixFeedExport
...
Fix FeedExporter not to export empty file
2023-07-22 23:18:36 +05:00
Andrey Rakhmatullin
e058a05763
Skip tests that don't work on Python 3.12.
2023-07-22 17:51:13 +04:00
Alex
04ee3303e4
Adding support for Windows of absolute pathlib.Path objects in FeedExporter ( #5939 )
2023-06-22 07:04:06 +02:00
Andrey Rakhmatullin
85fe88f80f
Merge pull request #5833 from GodelTech/issue_960_s3_feed_export
...
Fix #960 : S3 Feed Export throws boto error
2023-06-13 18:44:06 +04:00
Andrey Rakhmatullin
8a64f3e8de
Merge branch 'master' into feat/FixFeedExport
2023-06-13 18:21:06 +04:00
guillermo-bondonno
b50c032ee9
Add feed_slot_closed and feed_exporter_closed signals ( #5876 )
2023-04-26 08:20:37 +02:00
tstauder
ef61fb5698
Fix flaky tests involving feed export batches ( #5898 )
...
Co-authored-by: jmannoop <jmannoop@umich.edu>
2023-04-19 08:33:32 +02:00
Andrey Rakhmatullin
1e20ba0a1b
Merge branch 'master' into feat/FixFeedExport
2023-04-11 19:48:19 +04:00
Felipe Boff Nunes
a0e2e36b52
adjustments
2023-04-06 14:23:19 -03:00
Felipe Boff Nunes
0ffd1667ba
adjustments
2023-04-06 14:17:35 -03:00
jazzthief
4ebc08ef10
Switch from `is_boto3_available()` to `IS_BOTO3_AVAILABLE` var
2023-03-16 17:24:11 +01:00
kenshi kikuchi
c8ed793257
Fix test_export_no_items_multiple_feeds
2023-03-16 17:16:14 +09:00
Adrián Chaves
7e7b41c6b3
Fix test expectations for boto3
2023-03-15 16:38:13 +01:00
Adrián Chaves
39dbfa1d82
Minimize test reliance on S3; do not install botocore on the default test environments
2023-03-15 15:31:39 +01:00
kenshi kikuchi
d311779887
Fix FeedExporter
...
+ Fix FeedExporter not to export empty file
+ Change default value of FEED_STORE_EMPTY
2023-03-08 16:24:09 +09:00
Adrián Chaves
b07d3f85a3
Upgrade CI tools
2023-02-02 06:37:40 +01:00
Jalil SA
a5c1ef8276
sort imports with isort
2023-01-25 14:25:15 -06:00
Emmanuel Rondan
8ee4817471
reaplying black, fixing conflicts and ignoring bandit checks on test directory
2023-01-20 10:55:46 -03:00
Emmanuel Rondan
e211ec0aa2
adding black formatter to all the code
2022-11-29 11:30:46 -03:00
Matthew Donoughe
7daf735f45
downgrade type hint syntax
2022-10-18 20:07:29 -04:00
Matthew Donoughe
40d9ca3bdd
use pathlib
2022-10-17 17:40:10 -04:00
Laerte Pereira
3ca7877781
chore: Skip `batch_path_differ` test on Windows
2022-09-29 11:51:50 -03:00