Commit 826d90f
committed
Pin spec server path, not full URL, in base-URL drift test
Previously test_default_base_url_matches_spec_servers compared the
full URL of openapi.json's first server entry against DEFAULT_BASE_URL,
which forced the spec to come from the production host. Regenerating
the client from staging (different host, same /v0.4 path) tripped the
test even though the API-version contract was identical.
The version path is the actual safety property the test cares about;
the host is just the environment, and the runtime base URL is
overridable on IonQClient anyway. Compare urlparse(...).path on both
sides so staging regenerations pass while a /v0.4 -> /v0.5 bump still
fails until DEFAULT_BASE_URL is updated.1 parent 242f706 commit 826d90f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments