File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build pre release python versions
3
3
on : [push, pull_request]
4
4
5
5
env :
6
- CIBW_TEST_COMMAND_LINUX : " pytest --import-mode append {project}/tests/unit"
6
+ CIBW_TEST_COMMAND_LINUX : " pytest {project}/tests/unit"
7
7
CIBW_BEFORE_TEST : " pip install -r {project}/test-requirements.txt"
8
8
CIBW_BEFORE_BUILD_LINUX : " rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
9
9
CIBW_ENVIRONMENT : " CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ on: [push, pull_request]
4
4
5
5
6
6
env :
7
- CIBW_TEST_COMMAND_LINUX : " pytest --import-mode append {project}/tests/unit && EVENT_LOOP_MANAGER=gevent pytest --import-mode append {project}/tests/unit/io/test_geventreactor.py"
8
- CIBW_TEST_COMMAND_MACOS : " pytest --import-mode append {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)' "
9
- CIBW_TEST_COMMAND_WINDOWS : " pytest --import-mode append {project}/tests/unit -k \" not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\" "
7
+ CIBW_TEST_COMMAND_LINUX : " pytest {project}/tests/unit && EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py"
8
+ CIBW_TEST_COMMAND_MACOS : " pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)' "
9
+ CIBW_TEST_COMMAND_WINDOWS : " pytest {project}/tests/unit -k \" not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\" "
10
10
CIBW_BEFORE_TEST : " pip install -r {project}/test-requirements.txt"
11
11
CIBW_BEFORE_BUILD_LINUX : " rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
12
12
CIBW_ENVIRONMENT : " CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ Running Unit Tests
31
31
------------------
32
32
Unit tests can be run like so::
33
33
34
- python -m pytest --import-mode append tests/unit
35
- EVENT_LOOP_MANAGER=gevent python -m pytest --import-mode append tests/unit/io/test_geventreactor.py
36
- EVENT_LOOP_MANAGER=eventlet python -m pytest --import-mode append tests/unit/io/test_eventletreactor.py
34
+ python -m pytest tests/unit
35
+ EVENT_LOOP_MANAGER=gevent python -m pytest tests/unit/io/test_geventreactor.py
36
+ EVENT_LOOP_MANAGER=eventlet python -m pytest tests/unit/io/test_eventletreactor.py
37
37
38
38
You can run a specific test method like so::
39
39
Original file line number Diff line number Diff line change @@ -36,5 +36,5 @@ ccm remove
36
36
37
37
# run test
38
38
39
- PROTOCOL_VERSION=4 pytest -rf --import-mode append $*
39
+ PROTOCOL_VERSION=4 pytest -rf $*
40
40
You can’t perform that action at this time.
0 commit comments