Skip to content

Commit

Permalink
fix(tests): URL str output changed subtly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Jan 1, 2024
1 parent f8c5ab3 commit bfc8632
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
6 changes: 4 additions & 2 deletions ancv/visualization/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def _(self, item: WorkItem) -> RenderableGenerator:
f" {self.theme.sep} " if (location and url) else "",
self.theme.emphasis.weak,
),
(str(url) or "", self.theme.emphasis.weak),
("" if url is None else str(url), self.theme.emphasis.weak),
)
)

Expand Down Expand Up @@ -818,7 +818,9 @@ def _(self, item: Project) -> RenderableGenerator:
yield NewLine()

footer = join(
(str(item.url), Style()), (item.entity, Style()), separator=self.theme.sep
("" if item.url is None else str(item.url), Style()),
(item.entity, Style()),
separator=self.theme.sep,
)
if footer:
footer.style = self.theme.emphasis.weak
Expand Down
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"properties": {
"ancv": {
"type": "object",
"description": "ancv-specific (https://ancv.io) properties",
"description": "ancv-specific (https://ancv.io/) properties",
"properties": {
"template": {
"type": "string",
Expand Down
16 changes: 8 additions & 8 deletions tests/test_data/expected-outputs/full.resume.output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Programmer

[38;5;[email protected] • (912) 555-4321 • https://johndoe.com
[38;5;[email protected] • (912) 555-4321 • https://johndoe.com/

A summary of John Doe that is more than 200 characters long so that it can be tested and verified to see if it works and
how linebreaks are processed.
Expand Down Expand Up @@ -33,7 +33,7 @@
➔ Worked on the company's second product
➔ Worked on the company's third product

San Francisco, CA • https://example.com
San Francisco, CA • https://example.com/

Moogle A search engine for motorcycles  September 2019 ➔ present

Expand All @@ -47,7 +47,7 @@
➔ Worked on the company's third product, which was a motorcycle calender app that I was able to make in a week 
using blockchain technology.

San Antonio, TX • https://example.com
San Antonio, TX • https://example.com/

Poogle A search engine for the unspeakable  

Expand Down Expand Up @@ -169,11 +169,11 @@

Certificate of Excellence (Legitimate Certificate Authority)  November 2021

https://certificate.com
https://certificate.com/

Certificate of Merit (United States of America)  November 2020

https://example.com
https://example.com/

Certificate of Existence  

Expand All @@ -191,7 +191,7 @@
This paper is about how I did this and that, despite the fact that I did not write it.
Come to think of it, I probably committed a felony.

https://publication.com
https://publication.com/

Hex-Quantum Fields of Becker-Mendel Swirls in the Presence of a Non-Abelian Group (Physics of the Literally  March 2009
Impossible)
Expand All @@ -200,7 +200,7 @@
Almost every person thought it was about quantum mechanics, but I am not sure.
In fact, they called it impossible. They were right.

https://publication.com
https://publication.com/

Cryptanalysis of the RSA Algorithm Using a Quantum Computer  

Expand Down Expand Up @@ -377,7 +377,7 @@

Hammer, Nails, Some cables

https://iphone34.com•Self-Employed
https://iphone34.com/•Self-Employed


Sniffing Dog  
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/expected-outputs/partial.resume.output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Programmer

[38;5;[email protected] • (912) 555-4321 • https://johndoe.com
[38;5;[email protected] • (912) 555-4321 • https://johndoe.com/

A summary of John Doe that is more than 200 characters long so that it can be tested and verified to see if it works and
how linebreaks are processed.
Expand Down
6 changes: 3 additions & 3 deletions tests/test_data/expected-outputs/showcase.resume.output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

👋 Fullstack Developer

[38;5;[email protected] • +44 113 496 4389 • https://cooper.example.dev
[38;5;[email protected] • +44 113 496 4389 • https://cooper.example.dev/

Passionate and creative fullstack developer with over 7 years of experience in building and maintaining web 
applications. I have a strong background in JavaScript and PHP, and I am proficient in a variety of frameworks and 
Expand Down Expand Up @@ -30,7 +30,7 @@
➔ Wrote a new build system for Google's internal continuous integration system.
➔ Improved performance of Google's internal Borg deployment by 18%.

San Francisco, CA • https://google.com
San Francisco, CA • https://google.com/


────────────────────────────────────────────────────── Education ───────────────────────────────────────────────────────
Expand Down Expand Up @@ -166,4 +166,4 @@

Music

Guitar, Folk Rock
Guitar, Folk Rock

0 comments on commit bfc8632

Please sign in to comment.