Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run console tests as well #416

Merged
merged 2 commits into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions gaphor/plugins/console/tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ def test_help():
assert help() == "Usage: help(object)"


def test_help_on_object(capsys):
help = Help()

help(str)
captured = capsys.readouterr()

assert "|" in captured.out


def console_text(console):
buffer = console.text.get_buffer()
return buffer.get_text(buffer.get_start_iter(), buffer.get_end_iter(), False)
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,10 @@ testpaths = [
"docs",
]
python_files = "test_*.py"
# for coverage: --cov=gaphor/

# Doctests are failing on GitHub Actions CI (seg fault)
# addopts = "--doctest-modules"
# for coverage: --cov=gaphor/
addopts = "--doctest-modules"

# Console tests are failing the GitHub Actions CI (seg fault)
norecursedirs = "gaphor/plugins/console/tests"
junit_family = "xunit1"
markers = "slow: marks tests as slow (deselect with '-m \"not slow\"')"

Expand Down