mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix remaining tests to reflect the debug adapter refactoring changes.
Fix Flask and Django multiprocess tests. Fix test logs not being captured by pytest. Fix "import debug_me" check improperly applied in tests where it is unnecessary. Fix some clarifying patterns not respecting the underlying pattern. Add pattern helpers for strings: starting_with, ending_with, containing. Move DAP test helpers to a separate module, and add a helper for frames. Add support for line markers when setting breakpoints and matching frames. Assorted test fixes around handling of Unicode and paths.
This commit is contained in:
parent
746bda561e
commit
c03206972d
40 changed files with 1549 additions and 1344 deletions
|
|
@ -6,7 +6,6 @@ from __future__ import absolute_import, print_function, unicode_literals
|
|||
|
||||
import contextlib
|
||||
import itertools
|
||||
import pytest
|
||||
import threading
|
||||
|
||||
from ptvsd.common import fmt, log, timestamp
|
||||
|
|
@ -232,7 +231,7 @@ class Timeline(object):
|
|||
log.info('No matching {0!r}', expectation)
|
||||
occurrences = list(first.and_following())
|
||||
log.info("Occurrences considered: {0!r}", occurrences)
|
||||
pytest.fail("Expectation not matched")
|
||||
raise AssertionError("Expectation not matched")
|
||||
|
||||
occs = tuple(reasons.values())
|
||||
assert occs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue