Skip to content

Alternative to exec'ed code for building routine functions #40

@bckohan

Description

@bckohan

Typer looks at function signatures and we can't construct those at runtime without writing and exec-ing code strings. We should find a work around because this is not ideal. Specifically it makes testing harder because this means the routine command is built once during import. When using override_settings in tests we have to use importlib to force the module to be reloaded. This just impacts tests, but we should try to find a better way to do this that builds the command when it is run - not on import which will break routines anytime the command is import before settings are ready.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions