Skip to content

Commit

Permalink
Adjust font size of captued data
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansandberg committed Jun 11, 2020
1 parent cb03a7b commit 03d4cd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytest_reporter_html1/templates/html1/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ body {

pre {
background-color: #f3f3f3;
font-size: 80%;
font-size: 87.5%;
white-space: pre-wrap;
word-wrap: break-word;
padding: 0.7rem;
Expand Down
12 changes: 10 additions & 2 deletions tests/samples/sample_capturing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import logging
import sys
import pytest


def test_stdout():
print("STDOUT")
@pytest.fixture
def print_example():
print("Print from setup")
yield
print("Print from teardown")


def test_stdout(print_example):
print("\n".join("asd" * 40 for _ in range(100)))


def test_stderr():
Expand Down

0 comments on commit 03d4cd6

Please sign in to comment.