Skip to content

Remove python3parser in python code generation #1390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 6, 2022

Conversation

tamarinvs19
Copy link
Collaborator

@tamarinvs19 tamarinvs19 commented Nov 17, 2022

Description

I removed python3parser in python code generation for running code and mypy type checking. Now I use UtBot code generation to create PythonModel representation and my python module utbot-executor (GitHub, PyPI) to run this generated code and calculate coverage.

python3parser is still used in our different code.

Type of Change

  • Refactoring
  • New feature

How Has This Been Tested?

Manual Scenario

  1. Run UtBot plugin / CLI in python project
  2. Try to generate tests
  3. Tests should be generated

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

# Conflicts:
#	utbot-python/src/main/kotlin/org/utbot/python/PythonTestGenerationProcessor.kt
#	utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/PythonCodeGenerator.kt
#	utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/constructor/name/PythonCgNameGenerator.kt
#	utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/constructor/util/ConstructorUtils.kt
#	utbot-python/src/main/kotlin/org/utbot/python/framework/codegen/model/constructor/visitor/CgPythonRenderer.kt
@tamarinvs19 tamarinvs19 added the lang-python Issue is related to python support label Nov 24, 2022
@tamarinvs19 tamarinvs19 added the comp-codegen Issue is related to code generator label Nov 30, 2022
@tamarinvs19 tamarinvs19 merged commit df40a70 into main Dec 6, 2022
@tamarinvs19 tamarinvs19 deleted the tamarinvs19/python-codegen branch December 6, 2022 08:48
tamarinvs19 added a commit that referenced this pull request Dec 7, 2022
Remove python3parser from python codegen (code for running and code for mypy checking)

Co-authored-by: Vyacheslav Tamarin <vyacheslav.tamarin@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator lang-python Issue is related to python support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants