コード例 #1
0
    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')
コード例 #2
0
    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')
コード例 #3
0
 def setUp(self):
     temp_dir = tempfile.mkdtemp()
     NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file('openssl.cnf', temp_dir)
コード例 #4
0
 def setUp(self):
     temp_dir = tempfile.mkdtemp()
     NuclideCertificatesGenerator.openssl_cnf = write_resource_to_file(
         'openssl.cnf', temp_dir)