Esempio n. 1
0
def test_output_path_for_temp_file_with_new_extension():
    test_path = path.join(building.BUILD_DIR, '[11]myfile.x.y')
    assert path.join(building.BUILD_DIR,
                     '[12]myfile.x.y.z') == building.get_output_path(
                         test_path, 'z')
Esempio n. 2
0
def test_output_path_for_temp_file():
    test_path = path.join(building.BUILD_DIR, '[7]myfile.x.y')
    assert path.join(building.BUILD_DIR,
                     '[8]myfile.x.y') == building.get_output_path(test_path)
Esempio n. 3
0
def test_output_path_for_initial_file():
    test_path = path.abspath('myfile.x')
    assert path.join(building.BUILD_DIR,
                     '[0]myfile.x') == building.get_output_path(test_path)
Esempio n. 4
0
def test_output_path_for_initial_file_with_new_extension():
    test_path = path.abspath('myfile.x')
    assert path.join(building.BUILD_DIR,
                     '[0]myfile.x.y') == building.get_output_path(
                         test_path, 'y')
Esempio n. 5
0
 def add_mock_files(a, b, c):
     open(building.get_output_path('test.txt', 'hdr'), 'w').close()
     open(building.get_output_path('test2.txt', 'hdr'), 'w').close()