Skip to content

Commit

Permalink
Fix tests for PrettyTable 3.10.0's GitHub Flavored Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 23, 2024
1 parent 06842b6 commit 540b68b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
freezegun==1.4.0
httpx==0.26.0
platformdirs==4.2.0
prettytable==3.9.0
prettytable==3.10.0
pytablewriter[html]==1.2.0
pytest==8.0.0
pytest-cov==4.1.0
Expand Down
10 changes: 5 additions & 5 deletions tests/data/expected_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

EXPECTED_MD = """
| cycle | codename | release | latest | support | eol | link |
|:----------|:---------------:|:----------:|:--------|:----------:|:----------:|:-----------------------------------------------------|
| :---------| :-------------: | :--------: | :-------| :--------: | :--------: | :----------------------------------------------------|
| 22.04 LTS | Jammy Jellyfish | 2022-04-21 | 22.04 | 2027-04-02 | 2032-04-01 | https://wiki.ubuntu.com/JammyJellyfish/ReleaseNotes/ |
| 21.10 | Impish Indri | 2021-10-14 | 21.10 | 2022-07-31 | 2022-07-31 | https://wiki.ubuntu.com/ImpishIndri/ReleaseNotes/ |
| 21.04 | Hirsute Hippo | 2021-04-22 | 21.04 | 2022-01-20 | 2022-01-20 | https://wiki.ubuntu.com/HirsuteHippo/ReleaseNotes/ |
Expand All @@ -116,7 +116,7 @@

EXPECTED_MD_COLOUR = """
| cycle | codename | release | latest | support | eol | link |
|:----------|:---------------:|:----------:|:--------|:----------:|:----------:|:-----------------------------------------------------|
| :---------| :-------------: | :--------: | :-------| :--------: | :--------: | :----------------------------------------------------|
| 22.04 LTS | Jammy Jellyfish | 2022-04-21 | 22.04 | \x1b[32m2027-04-02\x1b[0m | \x1b[32m2032-04-01\x1b[0m | https://wiki.ubuntu.com/JammyJellyfish/ReleaseNotes/ |
| 21.10 | Impish Indri | 2021-10-14 | 21.10 | \x1b[32m2022-07-31\x1b[0m | \x1b[32m2022-07-31\x1b[0m | https://wiki.ubuntu.com/ImpishIndri/ReleaseNotes/ |
| 21.04 | Hirsute Hippo | 2021-04-22 | 21.04 | \x1b[33m2022-01-20\x1b[0m | \x1b[33m2022-01-20\x1b[0m | https://wiki.ubuntu.com/HirsuteHippo/ReleaseNotes/ |
Expand Down Expand Up @@ -205,7 +205,7 @@

EXPECTED_MD_LOG4J = """
| cycle | release | latest | eol |
|:------|:----------:|:-------|:----------:|
| :-----| :--------: | :------| :--------: |
| 2 | 2014-07-12 | 2.17.2 | False |
| 2.12 | 2019-06-23 | 2.12.4 | 2021-12-14 |
| 2.3 | 2015-05-09 | 2.3.2 | 2015-09-20 |
Expand All @@ -214,7 +214,7 @@

EXPECTED_MD_PYTHON = """
| cycle | release | latest | latest release | eol |
|:------|:----------:|:-------|:--------------:|:----------:|
| :-----| :--------: | :------| :------------: | :--------: |
| 3.10 | 2021-10-04 | 3.10.5 | 2022-06-06 | 2026-10-04 |
| 3.9 | 2020-10-05 | 3.9.13 | 2022-05-17 | 2025-10-05 |
| 3.8 | 2019-10-14 | 3.8.13 | 2022-03-16 | 2024-10-14 |
Expand All @@ -228,7 +228,7 @@

EXPECTED_MD_RHEL = """
| cycle | release | latest | latest release | support | eol | extended support |
|:------|:----------:|:-------|:--------------:|:----------:|:----------:|:----------------:|
| :-----| :--------: | :------| :------------: | :--------: | :--------: | :--------------: |
| 9 LTS | 2022-05-17 | 9.3 | 2023-11-07 | 2027-05-31 | 2032-05-31 | 2035-05-31 |
| 8 LTS | 2019-05-07 | 8.9 | 2023-11-14 | 2024-05-31 | 2029-05-31 | 2032-05-31 |
| 7 LTS | 2013-12-11 | 7.9 | 2020-09-29 | 2019-08-06 | 2024-06-30 | 2028-06-30 |
Expand Down

0 comments on commit 540b68b

Please sign in to comment.