Skip to content

Commit

Permalink
Move all python based tests to the new framework
Browse files Browse the repository at this point in the history
Summary: Move all tests from `compiler_failure_test.py` and `py3_compiler_failure_test.py` and delete the files and corresponding TARGET file entries.

Reviewed By: thedavekwon

Differential Revision: D51197070

fbshipit-source-id: fb361dfcc5241072966e719700b2ee8c1a876394
  • Loading branch information
prasad223 authored and facebook-github-bot committed Nov 10, 2023
1 parent 8054937 commit ebc7d0f
Show file tree
Hide file tree
Showing 4 changed files with 837 additions and 1,268 deletions.
9 changes: 7 additions & 2 deletions thrift/compiler/test/ast_generator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
from apache.thrift.type.schema.thrift_types import ReturnType
from apache.thrift.type.standard.thrift_types import TypeName, TypeUri

# @manual=//thrift/compiler/test:compiler_failure_test-library
from thrift.compiler.test.compiler_failure_test import write_file
from thrift.python.serializer import deserialize

file_manager = ExitStack()
Expand All @@ -36,6 +34,13 @@
)


def write_file(path, content):
if d := os.path.dirname(path):
os.makedirs(d)
with open(path, "w") as f:
f.write(content)


class AstGeneratorTest(unittest.TestCase):
def setUp(self):
tmp = tempfile.mkdtemp()
Expand Down
Loading

0 comments on commit ebc7d0f

Please sign in to comment.