Skip to content
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

Separate plugin tests from the core tests #4951

Merged
merged 3 commits into from
Oct 17, 2023
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
Empty file added test/plugins/__init__.py
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is part of beets.

Check failure on line 1 in test/plugins/lyrics_download_samples.py

View workflow job for this annotation

GitHub Actions / lint

D100 Missing docstring in public module
# Copyright 2016, Fabrice Laporte
#
# Permission is hereby granted, free of charge, to any person obtaining
Expand All @@ -17,10 +17,10 @@
import sys
import requests

import test_lyrics
from test.plugins import test_lyrics


def mkdir_p(path):

Check failure on line 23 in test/plugins/lyrics_download_samples.py

View workflow job for this annotation

GitHub Actions / lint

D103 Missing docstring in public function
try:
os.makedirs(path)
except OSError:
Expand All @@ -31,14 +31,14 @@


def safe_open_w(path):
"""Open "path" for writing, creating any parent directories as needed.

Check failure on line 34 in test/plugins/lyrics_download_samples.py

View workflow job for this annotation

GitHub Actions / lint

D200 One-line docstring should fit on one line with quotes
"""
mkdir_p(os.path.dirname(path))
return open(path, 'w')


def main(argv=None):
"""Download one lyrics sample page per referenced source.

Check failure on line 41 in test/plugins/lyrics_download_samples.py

View workflow job for this annotation

GitHub Actions / lint

D200 One-line docstring should fit on one line with quotes
"""
if argv is None:
argv = sys.argv
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_embedart.py → test/plugins/test_embedart.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from beets.util import bytestring_path, displayable_path, syspath
from beets.util.artresizer import ArtResizer
from beets import art
from test.test_art import FetchImageHelper
from test.plugins.test_art import FetchImageHelper


def require_artresizer_compare(test):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading