blob: 02877a3ec16ccab4f2c209ed1fc5bc147d73d935 [file] [log] [blame]
Matteo Scandolo67654fa2017-06-09 09:33:17 -07001import os
2
3# Constants
4OUTPUT_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/out/")
5
6TMP_TARGET_PATH = os.path.join(OUTPUT_DIR, 'tmp.xtarget')
7
8# Store in this class the args to pass at the generator
9class FakeArgs:
10 pass
11
12class XProtoTestHelpers:
13
14 @staticmethod
15 def write_tmp_target(target):
16 tmp_file = open(TMP_TARGET_PATH, 'w')
17 tmp_file.write(target)
18 tmp_file.close()
19 return TMP_TARGET_PATH
20