Skip to content

"make test" runs gen-project but puts outputs in /tmp - causing "make test" to continue to fail without an updated python class #19

Closed
@sierra-moxon

Description

@sierra-moxon
Member

steps to reproduce:

  1. create a project using linkml-project-cookiecutter
  2. make a breaking change to the schema yaml file
  3. run make test (noting that the test still works even with the breaking yaml change)

some solutions might be:

  • do something complicated in the test_data.py so that we import from the regenerated /tmp directory?
  • overwrite the python in src/linkml_tutorial_schema/datamodel directory with the refreshed classes that were generated into /tmp?

Activity

cpauvert

cpauvert commented on Jun 20, 2023

@cpauvert
Contributor

Hi @sierra-moxon
How was this issue resolved and what is the recommend approach? Because I also ran into the same problem.
UPDATE: Running make gen-project before running make test seems to update the datamodel
Best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sierra-moxon@cpauvert

        Issue actions

          "make test" runs gen-project but puts outputs in /tmp - causing "make test" to continue to fail without an updated python class · Issue #19 · linkml/linkml-project-cookiecutter