Florian Bruhin
77aa8b4337
pylint: Use ignored-modules for pytest
...
See https://github.com/PyCQA/astroid/pull/357
2016-08-23 07:45:31 +02:00
Florian Bruhin
3b6286f71a
Remove old pylint suppression for ssl.PROTOCOL_*
2016-08-23 07:45:15 +02:00
Florian Bruhin
23c4c89a0f
tests: Set __tracebackhide__ to a callable
...
This allows us to only filter the exceptions we actually want to hide.
See #1877
2016-08-23 07:28:08 +02:00
Florian Bruhin
0c6574afb1
Replace py.test with pytest
...
See #1877
2016-08-22 07:41:10 +02:00
Florian Bruhin
df3733af54
tests: Use pytest.fixture instead of yield_fixture
...
See #1877
2016-08-22 07:40:24 +02:00
Florian Bruhin
4658bdcacf
Use pytest.approx in tests.helpers.utils
...
See #1877
2016-08-22 07:39:11 +02:00
Florian Bruhin
853f4cd9d8
tests: Add a autouse fixture as workaround
...
This is a workaround for
https://github.com/pytest-dev/pytest/issues/1832
2016-08-22 07:24:17 +02:00
Florian Bruhin
80a3920aad
Revert "Revert "tests: Use getfixturevalue""
...
This reverts commit c8fe21c85f
.
2016-08-22 07:24:17 +02:00
Florian Bruhin
c8fe21c85f
Revert "tests: Use getfixturevalue"
...
This reverts commit 961d33b712
.
2016-08-21 16:59:54 +02:00
Florian Bruhin
961d33b712
tests: Use getfixturevalue
...
See #1877
2016-08-21 16:18:33 +02:00
Florian Bruhin
618a9cbc57
Fix lint
2016-08-20 22:57:09 +02:00
Florian Bruhin
bd53d4a410
tests: Clean up test_utils
2016-08-20 22:39:53 +02:00
Florian Bruhin
5bdeacd772
tests: Clean up test_config
2016-08-20 22:26:32 +02:00
Florian Bruhin
cfbd02eaba
tests: Clean up test_column_widths
2016-08-20 22:08:07 +02:00
Florian Bruhin
4c2b64b573
tests: Clean up test_http
2016-08-20 22:07:12 +02:00
Florian Bruhin
794bdf54a3
tests: Clean up test_log
2016-08-20 21:57:52 +02:00
Florian Bruhin
679165ebab
Remove unneeded import
2016-08-19 19:02:12 +02:00
Florian Bruhin
99c2f8eca5
Add missing import
2016-08-19 19:02:02 +02:00
Florian Bruhin
dec0f0753d
Relax the checking in :view-source test
2016-08-19 17:22:07 +02:00
Florian Bruhin
003952748b
Turn on BDD tests for pytest 3.0 again
...
pytest-bdd is fixed in the respective PR
2016-08-19 17:17:08 +02:00
Florian Bruhin
1cfadbf034
Fix / ? : bindings
...
This was broken in #1859 and I didn't notice...
2016-08-19 15:35:20 +02:00
Florian Bruhin
5367434a13
Add a unit test for :debug-log-filter
2016-08-19 15:20:08 +02:00
Florian Bruhin
3b897d6a64
bdd: Move :debug-log-* near :log-capacity tests
2016-08-19 15:05:45 +02:00
Florian Bruhin
6781f6409b
bdd: Test :debug-log-capacity with negative value
2016-08-19 15:05:20 +02:00
Florian Bruhin
33e71525ed
bdd: Test :debug-log-filter with invalid filter
2016-08-19 15:04:11 +02:00
Florian Bruhin
75c3b1a9f8
Fix test for :debug-log-level with invalid level
...
Since we're getting dictionary keys in choices=..., we need to sort them
so we get a consistent message.
2016-08-19 14:57:21 +02:00
Florian Bruhin
37758131f5
Delete broken :debug-log-{filter,level} tests
2016-08-19 14:43:42 +02:00
knaggita
bd6f4ae7c0
Add end2end tests issue52
2016-08-19 14:21:06 +02:00
knaggita
1d5a3a6175
Add :debug-loglevel :debug-logfilter commands
2016-08-19 14:12:19 +02:00
Florian Bruhin
8eb8039370
Merge branch 'rewrite-pP' of https://github.com/blyxxyz/qutebrowser into blyxxyz-rewrite-pP
2016-08-19 13:36:33 +02:00
Florian Bruhin
b5444338ba
Fix lint
2016-08-19 13:35:39 +02:00
Florian Bruhin
f7a7e82939
bdd: Skip another flaky backforward test with qtwe
2016-08-19 13:15:45 +02:00
Florian Bruhin
2eae6a0603
bdd: Wait less for xfailing tests
...
We now divide all timeouts by ten for xfailing tests, with the hope to
still catch newly passing tests, but not spend too much time waiting.
With a quick test, this reduced the testsuite run length from 12 to
7-8 minutes.
2016-08-19 13:11:29 +02:00
Florian Bruhin
362c23692a
Change quteproc._request back to quteproc.request
...
Otherwise our per-test quteproc fixture wouldn't set the 'request'
object properly from the outside, and quteproc always had a module as
request.node.
2016-08-19 13:05:59 +02:00
Florian Bruhin
8378e16139
Fix ignored tag in misc.feature
...
Seems like pytest-bdd ignores that second tag...
2016-08-19 12:20:23 +02:00
Florian Bruhin
6cd890aa19
bdd: Set request object on QuteProc
2016-08-19 12:15:50 +02:00
Florian Bruhin
c0c3279424
Fix test_quteprocess.test_set with QtWebEngine
...
network -> accept-language is not available for QtWebEngine, and we
simply need a setting which accepts an arbitrary string.
2016-08-19 11:25:59 +02:00
Florian Bruhin
3d1859b13e
Fix lint
2016-08-19 00:05:56 +02:00
Florian Bruhin
a88adcca17
bdd: Stop checking requests in yankpaste.feature
...
It's not needed and only makes the test more unreliable (e.g. flaky with
QtWebEngine)
2016-08-18 23:58:33 +02:00
Florian Bruhin
044b3df872
bdd: Skip another flaky test for QtWebEngine
2016-08-18 23:47:27 +02:00
Florian Bruhin
fa0bde631d
bdd: at_top is actually implemented (scroll)
2016-08-18 23:47:09 +02:00
Florian Bruhin
ea0f137fd1
bdd: Tag flaky backforward test qtwebengine_skip
2016-08-18 23:33:56 +02:00
Florian Bruhin
44c74c0887
tests: Mark test_mhtml_e2e as qtwebengine_todo
2016-08-18 23:32:26 +02:00
Florian Bruhin
914ce85780
tests: Fix quteproc_new fixture
2016-08-18 23:31:18 +02:00
Florian Bruhin
33755b09df
Skip :insert-text in test_insert_mode in webengine
2016-08-18 23:30:35 +02:00
Florian Bruhin
4d1ae999c6
tests: Allow to mark files as qtwebengine_todo
2016-08-18 23:28:37 +02:00
Florian Bruhin
322a4323cb
Improve file validating in test_hints
2016-08-18 23:28:27 +02:00
Florian Bruhin
1eb0eabdab
test_hints_html: Split off _parse_file
2016-08-18 23:14:21 +02:00
Florian Bruhin
63cc73d56d
Try to make test_hints work with QtWebEngine
2016-08-18 23:10:37 +02:00
Florian Bruhin
94e3d7b050
Mark test_dirbrowser as qtwebengine_skip
2016-08-18 23:05:31 +02:00