def setUp(self): NuclideServerManager.stop_all() # Dump resources to files and set up mock files. temp_dir = tempfile.mkdtemp() NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file('openssl.cnf', temp_dir) NuclideServer.script_path = write_resource_to_file('mock/nuclide-main.js', temp_dir) # Version file in the same directory as the mock script. NuclideServerManager.version_file = os.path.join(temp_dir, 'version.json')
def setUp(self): NuclideServerManager.stop_all() # Dump resources to files and set up mock files. temp_dir = tempfile.mkdtemp() NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file( 'openssl.cnf', temp_dir) NuclideServer.script_path = write_resource_to_file( 'mock/nuclide-main.js', temp_dir) # Version file in the same directory as the mock script. NuclideServerManager.package_file = os.path.join( temp_dir, 'package.json')
def setUp(self): temp_dir = tempfile.mkdtemp() NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file('openssl.cnf', temp_dir)
def setUp(self): temp_dir = tempfile.mkdtemp() NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file( 'openssl.cnf', temp_dir)