• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

schireson / pytest-mock-resources / 25863790105
89%

Build:
DEFAULT BRANCH: main
Ran 14 May 2026 01:51PM UTC
Jobs 1
Files 40
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2026 01:50PM UTC coverage: 89.013% (+0.1%) from 88.889%
25863790105

push

github

web-flow
feat: strip DISTKEY/SORTKEY/DISTSTYLE clauses in raw SQL for Redshift fixture (#233)

* feat: strip DISTKEY/SORTKEY/DISTSTYLE clauses in raw SQL for Redshift fixture

These Redshift-only CREATE TABLE clauses are accepted by Redshift but
rejected by Postgres, causing the fixture to error on raw production SQL
that includes them. Strip them at execution time, mirroring how COPY and
UNLOAD are already handled, both on the SQLAlchemy and the direct
psycopg2 cursor paths.

Refs: #99

* fix: anchor Redshift DDL strip regexes with word boundaries

Without word boundaries, the SORTKEY regex matched the substring
"sortkey" inside identifiers like "example_distkey_sortkey", and the
greedy `[^)]*` then consumed the column-list parentheses up to the first
closing paren, mangling otherwise valid CREATE TABLE statements.

Anchor each Redshift keyword (DISTKEY, DISTSTYLE, SORTKEY, COMPOUND,
INTERLEAVED, AUTO/EVEN/KEY/ALL) with \\b so the regex only matches the
keyword as a standalone token, not as a fragment of a longer identifier.
Add a regression test that exercises a table name containing both
"distkey" and "sortkey" as substrings.

Refs: #99

349 of 429 branches covered (81.35%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 3 files covered. (100.0%)

1482 of 1628 relevant lines covered (91.03%)

16.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 25863790105.1 14 May 2026 01:55PM UTC 40
89.01
GitHub Action Run
Source Files on build 25863790105
  • Tree
  • List 40
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a54bcd88 on github
  • Prev Build on main (#25514383959)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc