@@ -683,49 +683,49 @@ def test_generate_data_with_quasicrystal_background(self):
683683
684684class CommandLineInterface (unittest .TestCase ):
685685 def test_output_dir (self ):
686- args = ["./bin/trdg " , "-c" , "1" , "--output_dir" , "../tests/out_2/" ]
686+ args = ["python3" , "run.py " , "-c" , "1" , "--output_dir" , "../tests/out_2/" ]
687687 subprocess .Popen (args , cwd = "trdg/" ).wait ()
688688 self .assertTrue (len (os .listdir ("tests/out_2/" )) == 1 )
689689 empty_directory ("tests/out_2/" )
690690
691691 def test_language_english (self ):
692- args = ["./bin/trdg " , "-l" , "en" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
692+ args = ["python3" , "run.py " , "-l" , "en" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
693693 subprocess .Popen (args , cwd = "trdg/" ).wait ()
694694 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
695695 empty_directory ("tests/out/" )
696696
697697 def test_language_french (self ):
698- args = ["./bin/trdg " , "-l" , "fr" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
698+ args = ["python3" , "run.py " , "-l" , "fr" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
699699 subprocess .Popen (args , cwd = "trdg/" ).wait ()
700700 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
701701 empty_directory ("tests/out/" )
702702
703703 def test_language_spanish (self ):
704- args = ["./bin/trdg " , "-l" , "es" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
704+ args = ["python3" , "run.py " , "-l" , "es" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
705705 subprocess .Popen (args , cwd = "trdg/" ).wait ()
706706 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
707707 empty_directory ("tests/out/" )
708708
709709 def test_language_german (self ):
710- args = ["./bin/trdg " , "-l" , "de" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
710+ args = ["python3" , "run.py " , "-l" , "de" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
711711 subprocess .Popen (args , cwd = "trdg/" ).wait ()
712712 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
713713 empty_directory ("tests/out/" )
714714
715715 def test_language_chinese (self ):
716- args = ["./bin/trdg " , "-l" , "cn" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
716+ args = ["python3" , "run.py " , "-l" , "cn" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
717717 subprocess .Popen (args , cwd = "trdg/" ).wait ()
718718 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
719719 empty_directory ("tests/out/" )
720720
721721 def test_count_parameter (self ):
722- args = ["./bin/trdg " , "-c" , "10" , "--output_dir" , "../tests/out/" ]
722+ args = ["python3" , "run.py " , "-c" , "10" , "--output_dir" , "../tests/out/" ]
723723 subprocess .Popen (args , cwd = "trdg/" ).wait ()
724724 self .assertTrue (len (os .listdir ("tests/out/" )) == 10 )
725725 empty_directory ("tests/out/" )
726726
727727 def test_random_sequences_letter_only (self ):
728- args = ["./bin/trdg " , "-rs" , "-let" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
728+ args = ["python3" , "run.py " , "-rs" , "-let" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
729729 subprocess .Popen (args , cwd = "trdg/" ).wait ()
730730 self .assertTrue (
731731 all (
@@ -739,7 +739,7 @@ def test_random_sequences_letter_only(self):
739739 empty_directory ("tests/out/" )
740740
741741 def test_random_sequences_number_only (self ):
742- args = ["./bin/trdg " , "-rs" , "-num" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
742+ args = ["python3" , "run.py " , "-rs" , "-num" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
743743 subprocess .Popen (args , cwd = "trdg/" ).wait ()
744744 self .assertTrue (
745745 all (
@@ -753,7 +753,7 @@ def test_random_sequences_number_only(self):
753753 empty_directory ("tests/out/" )
754754
755755 def test_random_sequences_symbols_only (self ):
756- args = ["./bin/trdg " , "-rs" , "-sym" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
756+ args = ["python3" , "run.py " , "-rs" , "-sym" , "-c" , "1" , "--output_dir" , "../tests/out/" ]
757757 subprocess .Popen (args , cwd = "trdg/" ).wait ()
758758 with open ("tests/out/labels.txt" , "r" ) as f :
759759 self .assertTrue (
@@ -767,14 +767,14 @@ def test_random_sequences_symbols_only(self):
767767 empty_directory ("tests/out/" )
768768
769769 def test_handwritten (self ):
770- args = ["./bin/trdg " , "-c" , "1" , "--output_dir" , "../tests/out/" ]
770+ args = ["python3" , "run.py " , "-c" , "1" , "--output_dir" , "../tests/out/" ]
771771 subprocess .Popen (args , cwd = "trdg/" ).wait ()
772772 self .assertTrue (len (os .listdir ("tests/out/" )) == 1 )
773773 empty_directory ("tests/out/" )
774774
775775 def test_personalfont (self ):
776776 args = [
777- "./bin/trdg " ,
777+ "python3" , "run.py " ,
778778 "--font" ,
779779 "fonts/latin/Aller_Bd.ttf" ,
780780 "-c" ,
@@ -788,7 +788,7 @@ def test_personalfont(self):
788788
789789 def test_personalfont_unlocated (self ):
790790 args = [
791- "./bin/trdg " ,
791+ "python3" , "run.py " ,
792792 "--font" ,
793793 "fonts/latin/unlocatedFont.ttf" ,
794794 "-c" ,
0 commit comments