Commit eb3181a
Standardize pytest between oss/internal (#21661)
## Summary
Standardizes pytest configuration between the internal and
dagster-oss repositories:
- Shared conftest: internal/conftest.py now delegates to
dagster-oss/conftest.py via importlib instead of duplicating hooks
(--split, pytest_configure, pytest_runtest_setup,
pytest_collection_modifyitems). This keeps dagster-oss standalone while
eliminating drift.
- Aligned pyproject.toml: Both pyproject.toml files now declare the same
pytest settings (addopts, filterwarnings, markers, asyncio_mode,
asyncio_default_fixture_loop_scope, timeout) with consistent comments.
- Removed dead config: Dropped the redundant integration marker
registration from dagster-oss/conftest.py (already in pyproject.toml),
removed unused unit and e2e markers, and removed the no-op
--ignore=dbt/dbt_packages from internal.
- Added comments: Explanatory comments for all pytest config options in
both pyproject.toml files.
## Test plan
Existing test suite.
Internal-RevId: ccdcf06ab2fc3d00e3d38b89225643712c01b9691 parent f69308a commit eb3181a
2 files changed
Lines changed: 35 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
88 | 99 | | |
89 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
90 | 105 | | |
91 | | - | |
92 | 106 | | |
93 | | - | |
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
97 | | - | |
98 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
99 | 127 | | |
100 | 128 | | |
101 | 129 | | |
| |||
0 commit comments