Skip to content

Add a long-run strategy to the filtering test #1359

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

Merged
merged 4 commits into from
Aug 7, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
python run_mypy.py
- name: Check imports are sorted
run: |
python -m pip install isort
python -m isort --check-only
python -m pip install "isort==4.3.21"
python -m isort --check-only --recursive axelrod/.
- name: Check that all strategies are indexed
run: |
python run_strategy_indexer.py
Expand Down
1 change: 1 addition & 0 deletions axelrod/tests/integration/test_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def tearDown(self) -> None:
warnings.simplefilter("default", category=UserWarning)

@given(strategies=strategy_lists(min_size=20, max_size=20))
@example(strategies=[axl.DBS, axl.Cooperator])
def test_boolean_filtering(self, strategies):

classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/advanced/tournament_results.rst
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ This gives the count of cooperations made by each player during the first turn
of every match::

>>> results.initial_cooperation_count
[9.0, 0.0, 9.0, 9.0]
[9, 0, 9, 9]

Each player plays an opponent a total of 9 times (3 opponents and 3
repetitions). Apart from the :code:`Defector`, they all cooperate on the first
Expand Down