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

schireson / pytest-mock-resources / 25863790105 / 1
89%
main: 89%

Build:
DEFAULT BRANCH: main
Ran 14 May 2026 01:55PM UTC
Files 40
Run time 2s
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.1

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 %.

1482 of 1628 relevant lines covered (91.03%)

16.57 hits per line

Source Files on job run- - 25863790105.1
  • 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 Build 25863790105
  • a54bcd88 on github
  • Prev Job for on main (#25514383959.1)
  • 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