Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Fix some testing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tygoee committed Oct 28, 2023
1 parent 0c90c80 commit ad7b8b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/install/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from json import load
from os import path, get_terminal_size, mkdir
from os import path, mkdir
from urllib import parse, request, error

from .headers import headers
Expand Down Expand Up @@ -237,8 +237,7 @@ def download_files(total_size: int, install_path: str, side: Side, manifest: Man
total_files = len([media for media in mods +
resourcepacks + shaderpacks if side in media.get('sides', [])])

print(' ' * get_terminal_size().columns + '\r',
f"Skipped {skipped_files}/{total_files} " +
print(f"Skipped {skipped_files}/{total_files} " +
"files that were already installed" if skipped_files != 0 else '',
sep=''
)
4 changes: 2 additions & 2 deletions tests/install/test_modloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import unittest
from ..vars import quiet, empty_dir, install_dir
from ..vars import quiet, empty_dir, install_dir, launcher_dir

from src.install.modloaders import forge, fabric

Expand All @@ -24,7 +24,7 @@ class Install(unittest.TestCase):
@quiet
def test_forge_client(self):
empty_dir(install_dir)
forge('1.20.1', '47.1.0', 'client', install_dir)
forge('1.20.1', '47.1.0', 'client', install_dir, launcher_dir)

@quiet
def test_forge_server(self):
Expand Down

0 comments on commit ad7b8b1

Please sign in to comment.