aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_verbose_output.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_verbose_output.py')
-rw-r--r--test/test_verbose_output.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/test_verbose_output.py b/test/test_verbose_output.py
index 98c6d70..de0cb8e 100644
--- a/test/test_verbose_output.py
+++ b/test/test_verbose_output.py
@@ -1,15 +1,15 @@
#!/usr/bin/env python3
-# coding: utf-8
-
-from __future__ import unicode_literals
+# Allow direct execution
+import os
+import sys
import unittest
-import sys
-import os
-import subprocess
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
+import subprocess
+
rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -17,7 +17,8 @@ class TestVerboseOutput(unittest.TestCase):
def test_private_info_arg(self):
outp = subprocess.Popen(
[
- sys.executable, 'hypervideo_dl/__main__.py', '-v',
+ sys.executable, 'hypervideo_dl/__main__.py',
+ '-v', '--ignore-config',
'--username', 'johnsmith@gmail.com',
'--password', 'my_secret_password',
], cwd=rootDir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -30,7 +31,8 @@ class TestVerboseOutput(unittest.TestCase):
def test_private_info_shortarg(self):
outp = subprocess.Popen(
[
- sys.executable, 'hypervideo_dl/__main__.py', '-v',
+ sys.executable, 'hypervideo_dl/__main__.py',
+ '-v', '--ignore-config',
'-u', 'johnsmith@gmail.com',
'-p', 'my_secret_password',
], cwd=rootDir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -43,7 +45,8 @@ class TestVerboseOutput(unittest.TestCase):
def test_private_info_eq(self):
outp = subprocess.Popen(
[
- sys.executable, 'hypervideo_dl/__main__.py', '-v',
+ sys.executable, 'hypervideo_dl/__main__.py',
+ '-v', '--ignore-config',
'--username=johnsmith@gmail.com',
'--password=my_secret_password',
], cwd=rootDir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@@ -56,7 +59,8 @@ class TestVerboseOutput(unittest.TestCase):
def test_private_info_shortarg_eq(self):
outp = subprocess.Popen(
[
- sys.executable, 'hypervideo_dl/__main__.py', '-v',
+ sys.executable, 'hypervideo_dl/__main__.py',
+ '-v', '--ignore-config',
'-u=johnsmith@gmail.com',
'-p=my_secret_password',
], cwd=rootDir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)