Beispiel #1
0
 def _test_project_step(self, filename):
     super(BaseIntegrationTest, self)._test_project_step(filename)
     with cd(os.path.join(self.test_path, filename)):
         code = gordon([
             'gordon',
             'apply',
             '--stage={}'.format(self.uid),
         ])
         self.assertEqual(code, 0)
Beispiel #2
0
 def _test_project_step(self, filename):
     super(BaseIntegrationTest, self)._test_project_step(filename)
     with cd(os.path.join(self.test_path, filename)):
         code = gordon([
             'gordon',
             'apply',
             '--stage={}'.format(self.uid),
         ])
         self.assertEqual(code, 0)
Beispiel #3
0
    def assertRun(self, filename, lambda_name, stdin_input, expected_output):
        fake_stdin = tempfile.NamedTemporaryFile(mode='w')
        fake_stdin.write(stdin_input)
        fake_stdin.seek(0)

        with cd(os.path.join(self.test_path, filename)):
            with Capturing() as output:
                code = gordon(['gordon', 'run', lambda_name], stdin=fake_stdin)
            self.assertEqual(output, expected_output)
            self.assertEqual(code, 0)
Beispiel #4
0
    def assertRun(self, filename, lambda_name, stdin_input, expected_output):
        fake_stdin = tempfile.NamedTemporaryFile(mode='w')
        fake_stdin.write(stdin_input)
        fake_stdin.seek(0)

        with cd(os.path.join(self.test_path, filename)):
            with Capturing() as output:
                code = gordon(['gordon', 'run', lambda_name], stdin=fake_stdin)
            self.assertEqual(output, expected_output)
            self.assertEqual(code, 0)
Beispiel #5
0
 def _test_project_step(self, filename):
     with cd(os.path.join(self.test_path, filename)):
         code = gordon(['gordon', 'build'])
         self.assertEqual(code, 0)
Beispiel #6
0
 def _test_project_step(self, filename):
     with cd(os.path.join(self.test_path, filename)):
         code = gordon(['gordon', 'build'])
         self.assertEqual(code, 0)