mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 03:48:52 -06:00
refactor: move pack library code into packs/
This commit is contained in:
1 parent
4d4052a8ab
commit
0b532366d0
167 files changed
+14476
-13882
No files matched your search
@@ -100,13 +100,13 @@ class BeforeOpeningAPullRequest(unittest.TestCase):
|
||||
def test_a_file_too_large_for_git_has_a_route(self):
|
||||
"""The guide sent any file over 25 MB through a clone, which GitHub
|
||||
refuses past 100 MB, and only a maintainer can write to the release."""
|
||||
import validate_pr
|
||||
from resolve import review
|
||||
|
||||
text = generate_readme.generate_contributing()
|
||||
section = text.split("## What happens next", 1)[1].split("\n## ", 1)[0]
|
||||
self.assertEqual(validate_pr.MAX_FILE_SIZE, 100 * 1024 * 1024)
|
||||
self.assertEqual(review.MAX_FILE_SIZE, 100 * 1024 * 1024)
|
||||
self.assertIn("100 MB", section)
|
||||
self.assertIn(f"]({validate_pr.LARGE_FILE_ISSUE_URL})", section)
|
||||
self.assertIn(f"]({review.LARGE_FILE_ISSUE_URL})", section)
|
||||
|
||||
def test_it_installs_what_the_checks_need_and_no_site_package(self):
|
||||
"""The site is built by Node from website/package-lock.json: a pip
|
||||
@@ -177,7 +177,7 @@ class OneFileThroughTheBrowser(unittest.TestCase):
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
import validate_pr
|
||||
from resolve import review
|
||||
|
||||
scratch = REPO_ROOT / "tmp" / "tests"
|
||||
scratch.mkdir(parents=True, exist_ok=True)
|
||||
@@ -191,7 +191,7 @@ class OneFileThroughTheBrowser(unittest.TestCase):
|
||||
cwd = os.getcwd()
|
||||
os.chdir(directory)
|
||||
try:
|
||||
result = validate_pr.validate_file("bios/boot.rom", None, hashes)
|
||||
result = review.validate_file("bios/boot.rom", None, hashes)
|
||||
finally:
|
||||
os.chdir(cwd)
|
||||
self.assertTrue(result.passed)
|
||||
|
||||
Reference in new issue
Block a user