text stringlengths 0 132 |
|---|
============================= test session starts ============================= |
platform win32 -- Python 3.13.12, pytest-8.4.2, pluggy-1.5.0 -- C:\Users\Moderator\miniconda3\python.exe |
cachedir: .pytest_cache |
rootdir: C:\Users\Moderator\earn100\portfolio\bugfix_case_study\slugify |
configfile: pyproject.toml |
plugins: anyio-4.10.0 |
collecting ... collected 40 items / 38 deselected / 2 selected |
tests/test_release.py::ReleaseRegressionTests::test_modern_hard_cut_does_not_end_in_post_replacement_delimiters PASSED [ 50%] |
tests/test_release.py::ReleaseRegressionTests::test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word PASSED [100%] |
====================== 2 passed, 38 deselected in 0.06s ======================= |
============================= test session starts ============================= |
platform win32 -- Python 3.13.12, pytest-8.4.2, pluggy-1.5.0 -- C:\Users\Moderator\miniconda3\python.exe |
cachedir: .pytest_cache |
rootdir: C:\Users\Moderator\earn100\portfolio\bugfix_case_study\slugify |
configfile: pyproject.toml |
plugins: anyio-4.10.0 |
collecting ... collected 40 items / 38 deselected / 2 selected |
tests/test_release.py::ReleaseRegressionTests::test_modern_hard_cut_does_not_end_in_post_replacement_delimiters FAILED [ 50%] |
tests/test_release.py::ReleaseRegressionTests::test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word FAILED [100%] |
================================== FAILURES =================================== |
_ ReleaseRegressionTests.test_modern_hard_cut_does_not_end_in_post_replacement_delimiters _ |
self = <tests.test_release.ReleaseRegressionTests testMethod=test_modern_hard_cut_does_not_end_in_post_replacement_delimiters> |
def test_modern_hard_cut_does_not_end_in_post_replacement_delimiters(self): |
cases = ( |
('one--two', '-', 4, 'one'), |
('one--two', '-', 5, 'one'), |
('one--two', '-', 6, 'one--t'), |
('one--two', '::', 6, 'one'), |
('one--two', '::', 7, 'one'), |
('one--two', '::', 8, 'one::::t'), |
('--one', '-', 2, ''), |
('--one', '-', 3, '--o'), |
('---', '-', 2, ''), |
('x--two', 'x', 3, 'x'), |
('one--two', '', 4, 'onet'), |
) |
for replacement, separator, limit, expected in cases: |
with self.subTest(replacement=replacement, separator=separator, limit=limit): |
> self.assertEqual(slugify('value', replacements=[('value', replacement)], |
replacement_stage='post', allow_unicode=True, |
separator=separator, max_length=limit), expected) |
E AssertionError: 'one-' != 'one' |
E - one- |
E ? - |
E + one |
tests\test_release.py:72: AssertionError |
_ ReleaseRegressionTests.test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word _ |
self = <tests.test_release.ReleaseRegressionTests testMethod=test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word> |
def test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word(self): |
for order in (False, True): |
> self.assertEqual(slugify('value', replacements=[('value', '--longword')], |
replacement_stage='post', allow_unicode=True, |
max_length=2, word_boundary=True, save_order=order), '') |
E AssertionError: '-' != '' |
E - - |
tests\test_release.py:78: AssertionError |
=========================== short test summary info =========================== |
FAILED tests/test_release.py::ReleaseRegressionTests::test_modern_hard_cut_does_not_end_in_post_replacement_delimiters |
FAILED tests/test_release.py::ReleaseRegressionTests::test_modern_word_boundary_hard_cut_keeps_delimiters_with_the_next_word |
====================== 2 failed, 38 deselected in 0.11s ======================= |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Freelance Samples — Minh Tran
Real, executed freelance work samples: a web scraper with its actual 1,000-row output, a reproducible messy-data cleaning pipeline with a generated QA report, and a bugfix case study on a real open-source library with before/ after test transcripts. Plus the paid Claude Code Skills Pack (18 skills, 5 free).
Start with portfolio.md — one section per sample: what was done, the files, and what a client gets.
| Sample | Folder | Headline |
|---|---|---|
| Web scraper | web_scraper/ |
1,000 books scraped from 50 real pages → typed CSV; retries, backoff, encoding fix, thread-pooled enrichment |
| Data cleaning | data_cleaning/ |
540-row messy export → 500 clean rows; every fix counted in a generated QA report; before/after PNGs |
| Bugfix case study | bugfix_case_study/ |
Real python-slugify bug: failing test → 7-line fix → 2 failed→2 passed, 124/124 suite; standalone repro included |
| Skills Pack (product) | skills_pack/ |
18 Claude Code skills (5 free) — download the zip or grab it from the dedicated repo |
Persona, deliverables, and per-project detail: portfolio.md.
- Downloads last month
- 72