Skip to content

Commit

Permalink
Run "pip" on Windows and "pip3" on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
shailshouryya committed Dec 25, 2020
1 parent 8c73de6 commit 6fa0deb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions python/tests/test_cross_platform_drivers.py
@@ -1,9 +1,13 @@
import os
os.system('pip install .')

from test_shared import create_test_cases, run_test_case, determine_path_slash
formatted_pip = 'pip' if determine_path_slash() == '\\' else 'pip'
os.system(f'{formatted_pip} install .')


from yt_videos_list.download.windows_info import get_drive_letter
from yt_videos_list.download.user_os_info import determine_user_os
from test_shared import create_test_cases, run_test_case



def remove_dependencies():
Expand Down
8 changes: 5 additions & 3 deletions python/tests/test_dependencies_json.py
@@ -1,12 +1,14 @@
import os
import re
import json
os.system('pip install .')

from yt_videos_list.notifications import Common
from test_shared import determine_path_slash
PATH_SLASH = determine_path_slash()
PATH_SLASH = determine_path_slash()
formatted_pip = 'pip' if PATH_SLASH == '\\' else 'pip'
os.system(f'{formatted_pip} install .')


from yt_videos_list.notifications import Common

def write_pseudo_json(drivers_dictionary):
with open('temp.json', 'w', encoding='utf-8') as file:
Expand Down

0 comments on commit 6fa0deb

Please sign in to comment.