File: fsspec-tests

package info (click to toggle)
fsspec 2025.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,260 kB
  • sloc: python: 24,803; makefile: 31; sh: 17
file content (19 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -efu

pys="$(py3versions -s 2> /dev/null)"

# copy test files into an empty dir
cp -va fsspec/tests "$AUTOPKGTEST_TMP"/tests
cp -va fsspec/implementations/tests "$AUTOPKGTEST_TMP"/implementations_tests
cp -va fsspec/conftest.py  "$AUTOPKGTEST_TMP"/

sed -i 's/fsspec.tests.test_spec.DummyTestFS/tests.test_spec.DummyTestFS/g' "$AUTOPKGTEST_TMP"/tests/test_spec.py

cd "$AUTOPKGTEST_TMP"

for py in $pys; do
	echo "=== $py ==="
	$py -m pytest tests/ --ignore tests/test_fuse.py
	$py -m pytest -k 'not test_find_returns_expected_result_detail_true_include_dirs and not test_find_returns_expected_result_detail_true and not test_async_cat_file_ranges' implementations_tests/ --ignore implementations_tests/test_github.py
done