예제 #1
0
파일: run.py 프로젝트: MartinThoma/apidoc
    def run_dry_run(self):
        try:
            sources = self._get_sources()
        except:
            pass

        print(json_repr(sources))
예제 #2
0
    def run_dry_run(self):
        try:
            sources = self._get_sources()
        except:
            pass

        print(json_repr(sources))
예제 #3
0
    def main(self):
        """Run the command
        """
        sourceService = SourceService()
        sourceFactory = SourceFactory()

        config = self.get_config()
        sources = sourceFactory.create_from_config(config)
        sourceService.validate(sources)

        print(json_repr(sources))
예제 #4
0
 def test_json_repr__None(self):
     self.assertEqual('null', json_repr(None))
예제 #5
0
 def test_json_repr__ObjectEnum(self):
     self.assertEqual('"a"', json_repr(objectEnum.a))
예제 #6
0
 def test_json_repr__ObjectOher(self):
     self.assertIn('proxy(', json_repr(type("")))
예제 #7
0
 def test_json_repr__Tupple(self):
     self.assertEqual('[1, 2]', json_repr((1, 2)))
예제 #8
0
 def test_json_repr__ObjectDiff(self):
     self.assertIn('"b": 1', json_repr(objectDict()))
     self.assertIn('"c": 2', json_repr(objectDict()))
예제 #9
0
 def test_json_repr__Dict(self):
     self.assertIn('"a": 1', json_repr({"b": 2, "a": 1}))
     self.assertIn('"b": 2', json_repr({"b": 2, "a": 1}))
예제 #10
0
 def test_json_repr__List(self):
     self.assertEqual('[1, 2]', json_repr([1, 2]))
예제 #11
0
 def test_json_repr__String(self):
     self.assertEqual('"foo\\"bar"', json_repr('foo"bar'))
예제 #12
0
 def test_json_repr__String(self):
     self.assertEqual('"foo\\"bar"', json_repr('foo"bar'))
예제 #13
0
 def test_json_repr__None(self):
     self.assertEqual('null', json_repr(None))
예제 #14
0
 def test_json_repr__Dict(self):
     self.assertIn('"a": 1', json_repr({"b": 2, "a": 1}))
     self.assertIn('"b": 2', json_repr({"b": 2, "a": 1}))
예제 #15
0
 def test_json_repr__ObjectOher(self):
     self.assertIn('proxy(', json_repr(type("")))
예제 #16
0
 def test_json_repr__ObjectEnum(self):
     self.assertEqual('"a"', json_repr(objectEnum.a))
예제 #17
0
 def test_json_repr__ObjectDiff(self):
     self.assertIn('"b": 1', json_repr(objectDict()))
     self.assertIn('"c": 2', json_repr(objectDict()))
예제 #18
0
 def test_json_repr__Tupple(self):
     self.assertEqual('[1, 2]', json_repr((1, 2)))
예제 #19
0
 def test_json_repr__List(self):
     self.assertEqual('[1, 2]', json_repr([1, 2]))
예제 #20
0
 def test_json_repr__Number(self):
     self.assertEqual('1.2', json_repr(1.2))
예제 #21
0
 def test_json_repr__Number(self):
     self.assertEqual('1.2', json_repr(1.2))