Skip to content

Commit

Permalink
Fix unit test regex
Browse files Browse the repository at this point in the history
Previously, the installation source, architecture,
and distribution were all part of a single
component. Now that they are separate, we should
only be checking for the installation source here,
and then later that the distribution is not
unknown.
  • Loading branch information
kdaily committed May 7, 2024
1 parent c319aa0 commit 4a050a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_clidriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def test_user_agent(self, *args):
machine = platform.machine()
driver = create_clidriver()
user_agent_extra_pattern = re.compile(
r'^md/installer#source(\.[a-z_]+)?(\.[0-9]+)?$'
r'^md/installer#source'
)
self.assertIsNotNone(user_agent_extra_pattern.match(
driver.session.user_agent_extra))
Expand Down

0 comments on commit 4a050a9

Please sign in to comment.