• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

schireson / pytest-mock-resources
89%

Build:
DEFAULT BRANCH: main
Repo Added 24 Dec 2022 01:24AM UTC
Token 6dQvnl7sChucYNsfJI0NbWmesiomGNR1r regen
Build 151 Last
Files 40
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 2.12.2
  • DanCardin-patch-1
  • dc/3rd-party-resources
  • dc/avoid-psycopg2-dependency-where-possible
  • dc/cleanup_database
  • dc/cli
  • dc/connection-stuff
  • dc/database-cleanup
  • dc/docker-client-call
  • dc/fix-cli
  • dc/improve-postgres-driver-heuristics
  • dc/lint
  • dc/mysql-engine-kwargs
  • dc/mysql-is-slow
  • dc/plugin
  • dc/postgres-fixture-scope
  • dc/psycopg3
  • dc/release
  • dc/set-region-during-role-assumption
  • dc/simplify-moto-fixtures
  • dc/sqlalchemy2-base
  • dc/sqlalchemy2-compat
  • feat/docker-container-run-args
  • feat/redshift-median-listagg
  • feature/add-redshift-convert-timezone
  • feature/add-redshift-len
  • feature/redshift-distkey-sortkey
  • fix-typos
  • fix-workflow
  • main
  • wm/fix-driver-discover-for-psycopg2-binary

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

Relevant lines Covered
Build:
Build:
1628 RELEVANT LINES 1482 COVERED LINES
16.57 HITS PER LINE
Source Files on main
  • Tree
  • List 40
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25863790105 main 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 b... push 14 May 2026 01:51PM UTC web-flow github
89.01
25822582016 feature/redshift-distkey-sortkey Merge 344c8670e into a95c2c647 Pull #233 13 May 2026 08:07PM UTC web-flow github
89.02
25514383959 main refactor: use f-string and remove intermediate generator variable in cli.py (#232) push 07 May 2026 06:26PM UTC web-flow github
88.89
25217096087 main feat: Allow defining run_args via container_args on container config (#231) * feat: Allow defining run_args via container_args on container config Wires up the existing-but-unused `container_args` field on `DockerContainerConfig` to forward arbi... push 01 May 2026 02:00PM UTC web-flow github
88.85
24800481318 feat/docker-container-run-args Merge 84ed3bb9f into 3b834f9d5 Pull #231 22 Apr 2026 08:18PM UTC web-flow github
88.85
24798864780 main feat: handle MEDIAN and LISTAGG functions for Redshift (#230) Adds two Redshift aggregate UDFs that previously raised 'function does not exist' errors against the mock fixture: - MEDIAN(col): implemented as a CREATE AGGREGATE using array_append ... push 22 Apr 2026 07:42PM UTC web-flow github
88.8
24752847432 feat/redshift-median-listagg Merge 3265fe1c3 into 4d0d76b82 Pull #230 22 Apr 2026 06:06PM UTC web-flow github
88.8
17807170699 main fix: pmr --stop subcommand. (#229) push 17 Sep 2025 06:32PM UTC web-flow github
88.75
17805557068 dc/cli Merge 5266b167c into e1fd4bc65 Pull #229 17 Sep 2025 05:24PM UTC web-flow github
88.75
17649010097 main fix: Bump version. (#226) push 11 Sep 2025 03:13PM UTC web-flow github
88.75
See All Builds (57)

Badge your Repo: pytest-mock-resources

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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