Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

347 - Use regex to replace server URL #348

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Conversation

Andy-Grigg
Copy link
Collaborator

Closes #347

Use a regular expression to replace the URL in the BomAnalyticsClient repr. Raise a ValueError if no match is found.

@Andy-Grigg Andy-Grigg requested a review from da1910 August 25, 2023 19:05
@codecov-commenter
Copy link

Codecov Report

Merging #348 (616f32d) into main (dfe5511) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #348   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files          10       10           
  Lines        1386     1386           
=======================================
  Hits         1320     1320           
  Misses         66       66           

@@ -30,12 +31,20 @@ def with_autologon(self: Connection) -> Connection:
Connection.with_autologon = with_autologon


# Monkey patch the Client object to report the url specified in the code, or the one below if not overridden
# Monkey patch the Client object to report the url specified below
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see where this would be overridden, so I changed the comment

Copy link
Collaborator

@da1910 da1910 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I didn't know about re.subn, you learn something every day!

@Andy-Grigg
Copy link
Collaborator Author

Looks good, I didn't know about re.subn, you learn something every day!

The re module is a trove of weird functionality!

@Andy-Grigg Andy-Grigg added this pull request to the merge queue Aug 28, 2023
Merged via the queue into main with commit 67ce88d Aug 28, 2023
@ludovicsteinbach ludovicsteinbach deleted the fix/347-fix-spec-to-spec-repr branch January 17, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The repr in the 'Database-specific configuration' example is incorrect
3 participants