Skip to content
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

Does anyone use user defined tests in their ingest packages? #595

Open
znatty22 opened this issue Mar 31, 2021 · 7 comments
Open

Does anyone use user defined tests in their ingest packages? #595

znatty22 opened this issue Mar 31, 2021 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@znatty22
Copy link
Member

If you recall, you can define tests inside your ingest package that will get executed via pytest as part of ingest validation. The goal was to give an ingest package developer a way to further test their extract and transform stage output.

Does anyone use this feature? If not, I'd like to get rid of that code and its depedencies (pytest). The version of pytest that it uses often conflicts with other code bases that use the ingest library and also use pytest for unit testing.

@youngnm
Copy link
Contributor

youngnm commented Mar 31, 2021

No, I am not using it!

@fiendish
Copy link
Contributor

even if they did, integrating it isn't necessary. the old data structures are gone now. someone could script running the first two stages and looking at the output before running the last stage.

@chris-s-friedman
Copy link
Contributor

I never have used it - but actually wanted to do it for the first time the other day

@znatty22
Copy link
Member Author

@fiendish @liberaliscomputing @chris-s-friedman @youngnm @nicholasvk Ok so then should we get rid of it? React, 👍 for yes or 👎 for no/we should keep it.

@chris-s-friedman
Copy link
Contributor

👎 if i can get a tutorial on how to write user defined tests 😜

@fiendish
Copy link
Contributor

fiendish commented Mar 31, 2021

people who have never used it want to keep it, lol. no, come on, get rid of it plz. 😆

@fiendish
Copy link
Contributor

fiendish commented Mar 31, 2021

Like if you want to do ET and only L on some condition, the library and CLI already support that behavior without wedging in a dependency on pytest by letting you run just ET. So you can run just ET, look at the output however you want, and then decide to run L after.

And if someone wants to do that check with pytest, that's fine. And if someone wants to script that process so they don't have to do it manually, great too. And if they want to add it to the library more generically instead of this, that's also ok. But we don't have to make the library itself depend on pytest for it.

But if the problem is version conflicts, we could also just unpin the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants