Skip to content
Merged
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
6 changes: 6 additions & 0 deletions wrappers/upstream-pr.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ jobs:
if [ -d "provider-repo/tests" ]; then
mkdir -p "tests/providers/${DOMAIN}"
rsync -av --delete provider-repo/tests/ "tests/providers/${DOMAIN}/"
# Rewrite test imports: from provider.X → from music_assistant.providers.DOMAIN.X
find "tests/providers/${DOMAIN}/" -name '*.py' -exec \
sed -i "s/from provider\./from music_assistant.providers.${DOMAIN}./g" {} +
# Rewrite mock.patch string literals: "provider.X" → "music_assistant.providers.DOMAIN.X"
find "tests/providers/${DOMAIN}/" -name '*.py' -exec \
sed -i "s/\"provider\./\"music_assistant.providers.${DOMAIN}./g" {} +
fi

# Remove the cloned provider-repo dir before staging to avoid adding it as a submodule
Expand Down