Skip to content

Commit

Permalink
Disable JsonRepositoryClient optimization in unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Oct 17, 2023
1 parent 7c9e448 commit 286feb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package_control/tests/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from ..providers.gitlab_repository_provider import GitLabRepositoryProvider
from ..providers.gitlab_user_provider import GitLabUserProvider
from ..providers.json_repository_provider import JsonRepositoryProvider
from ..providers import json_repository_provider

from ._config import (
BB_PASS,
Expand All @@ -22,6 +23,10 @@
USER_AGENT,
)

# prevent optimizations when running tests those
# filter out required results for platform independent tests.
json_repository_provider.IS_ST = False


class GitHubRepositoryProviderTests(unittest.TestCase):
maxDiff = None
Expand Down

0 comments on commit 286feb7

Please sign in to comment.