Referencing metadata in a pants test (pytest) #21701
Unanswered
kdowney-talos
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Try adding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running this code in a unit test with load_metadata("serenity-base"):
fails with:
but only when I run via
pants test
; it passes when I just run pytest standalone. I believe this is because pytest is picking up the egg-info directory in the main source folder, which has the relevant metadata from thepyproject.toml
: in this case, that the package name isserenity-base
for distribution purposes.Is there any way to get pants test to do the same?
Beta Was this translation helpful? Give feedback.
All reactions