Skip to content

Commit c9f0661

Browse files
committed
fix: Update example app name in AppData class docstring for clarity
1 parent ef94ea7 commit c9f0661

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

config2py/tests/test_app_data.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -209,31 +209,3 @@ def test_get_artifact_dir_multiple_kinds(self, tmp_path):
209209
d = app.get_artifact_dir(kind)
210210
assert d.is_dir()
211211
assert d.name == kind
212-
213-
214-
# =============================================================================
215-
# Integration: AppData with real accompy seed data
216-
# =============================================================================
217-
218-
219-
class TestAppDataWithAccompy:
220-
"""Verify AppData works with accompy's actual _seed_data package."""
221-
222-
def test_real_seed_resource(self, tmp_path):
223-
with patch.dict(os.environ, {"XDG_DATA_HOME": str(tmp_path)}):
224-
app = AppData("accompy")
225-
path = app.get_resource("short_styles.txt")
226-
assert path.exists()
227-
lines = [
228-
l.strip() for l in path.read_text().splitlines() if l.strip()
229-
]
230-
assert len(lines) > 30
231-
assert "jazz club late night" in lines
232-
233-
def test_real_seed_config(self, tmp_path):
234-
with patch.dict(os.environ, {"XDG_CONFIG_HOME": str(tmp_path)}):
235-
app = AppData("accompy")
236-
path = app.get_config("defaults.json")
237-
data = json.loads(path.read_text())
238-
assert data["style"] == "swing"
239-
assert data["tempo"] == 120

config2py/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ class AppData:
579579
580580
Args:
581581
app_name: The application name used for the directory under the
582-
XDG root (e.g. ``"accompy"`` → ``~/.local/share/accompy``).
582+
XDG root (e.g. ``"my_app"`` → ``~/.local/share/my_app``).
583583
package_name: The top-level Python package that contains the
584584
``_seed_data`` directory. Defaults to *app_name*.
585585
seed_data_dir: Name of the seed-data sub-package inside the

0 commit comments

Comments
 (0)