Skip to content

Commit

Permalink
Turns out it works differently on different computers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacoblightning committed Jan 21, 2024
1 parent e81fc2f commit 3de1954
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test_mainfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ def copyNeeded(temppth):
shutil.copy("yt2flp.py", temppth)


def test_converter(tmp_path):
copyNeeded(tmp_path)
origDir = os.path.abspath(".")
os.chdir(tmp_path)
os.system(f"{getPython()} helper1.py output.mp4 output.bnd")
assert hashFile("rickroll.bnd") == hashFile("output.bnd")
os.chdir(origDir)


def test_ALL(tmp_path):
copyNeeded(tmp_path)
origDir = os.path.abspath(".")
Expand Down Expand Up @@ -85,3 +76,13 @@ def test_booster(self, tmp_path):
boost(True)
assert hashFile("output1.mp4") == hashFile("output.mp4")
os.chdir(origDir)

def test_converter(self, tmp_path):
copyNeeded(tmp_path)
origDir = os.path.abspath(".")
os.chdir(tmp_path)
os.system(f"{getPython()} helper1.py output.mp4 output.bnd")
os.system(f"{getPython()} helper1.py output.mp4 output1.bnd")
assert hashFile("output1.mp4") == hashFile("output.mp4")
os.chdir(origDir)

0 comments on commit 3de1954

Please sign in to comment.