Create pytest infrastructure in `rbext create`
Review Request #13084 — Created May 31, 2023 and submitted
Information | |
---|---|
david | |
Review Board | |
release-6.x | |
Reviewers | |
reviewboard | |
Now that we can use pytest in extensions, we want to create that as part
of creating a new extension. This change adds the machinery to generate
conftest.py
andpyproject.toml
files with the correct setup to run
tests.
Created a test extension and saw that it was set up to run tests.
Summary | |
---|---|
Description | From | Last Updated |
---|---|---|
We should probably generate a pyproject.toml instead, putting this there, and also stop generating a setup.py. I know that last … |
|
|
Are we able to set these in our fixtures file? Also wondering about that for many of these other options. … |
|
|
This is duplicated. |
|
-
-
reviewboard/cmdline/rbext.py (Diff revision 1) We should probably generate a
pyproject.toml
instead, putting this there, and also stop generating asetup.py
. I know that last part is outside the scope of this change, but withsetup.py
going away, that'll be important. -
reviewboard/cmdline/rbext.py (Diff revision 1) Are we able to set these in our fixtures file?
Also wondering about that for many of these other options. I suspect some can be, but I don't know.
Change Summary:
Switch test config to pyproject.toml
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commits: |
|
||||||||||||||||||||||||
Diff: |
Revision 2 (+158) |