Skip to content

Commit

Permalink
d Doco changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 4, 2021
1 parent 696b384 commit ea38b8e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,20 @@ class TestSelectReporter(unittest.TestCase):
def test_simple(self):
verify('Hello', self.factory.get('BeyondCompare4'))
```
<sup><a href='/tests/samples/test_getting_started.py#L6-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-select_reporter_from_factory' title='Start of snippet'>anchor</a></sup>
<sup><a href='/tests/samples/test_getting_started.py#L7-L14' title='Snippet source file'>snippet source</a> | <a href='#snippet-select_reporter_from_factory' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

or you can construct the reporter directly

snippet: select_reporter_from_class
<!-- snippet: select_reporter_from_class -->
<a id='snippet-select_reporter_from_class'></a>
```py
class TestSelectReporterFromClass(unittest.TestCase):
def test_simple(self):
verify('Hello', reporter=ReportWithBeyondCompare())
```
<sup><a href='/tests/samples/test_getting_started.py#L16-L20' title='Snippet source file'>snippet source</a> | <a href='#snippet-select_reporter_from_class' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or you can build your own GenericDiffReporter on the fly

Expand Down

0 comments on commit ea38b8e

Please sign in to comment.