Files
pytheory/tests/conftest.py
T
kennethreitz 453e8b874b test: split the monolithic suite into per-area files
Break tests/test_pytheory.py (~8.4k lines, 968 defs) into focused files
by area — tones, scales, chords, keys, systems, fretboard, rhythm,
drums, playback, audio, notation, cli, live, misc. Shared helpers and
the PortAudio marker move to tests/_util.py; the guitar_fretboard
fixture to tests/conftest.py.

Split mechanically via AST, preserving each test verbatim (decorators
included) and intra-area order. Collection and results are unchanged:
967 collected, 962 passed + 5 slow.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 14:27:50 -04:00

18 lines
427 B
Python

import pytest
from pytheory import Tone, Fretboard
@pytest.fixture
def guitar_fretboard():
tuning = [
Tone.from_string("E4"),
Tone.from_string("B3"),
Tone.from_string("G3"),
Tone.from_string("D3"),
Tone.from_string("A2"),
Tone.from_string("E2"),
]
# Literal is written high-to-low, so declare that orientation.
return Fretboard(tones=tuning, high_to_low=True)