Skip to content

Fix CI-namex-bad-name-notifier and sftp-nuans-report#1962

Merged
stevenc987 merged 3 commits intobcgov:mainfrom
stevenc987:main
Feb 26, 2026
Merged

Fix CI-namex-bad-name-notifier and sftp-nuans-report#1962
stevenc987 merged 3 commits intobcgov:mainfrom
stevenc987:main

Conversation

@stevenc987
Copy link
Collaborator

Issue #, if available:

Description of changes:
Fix CI for bad-name-notifier
Added test case

Fix CI for sftp-nuans-report

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI-namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32240-Fix CI and lint - sftp-nuans-report

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>

32238-Fix CI - namex-bad-name-notifier and sftp_nuans_report
Copy link
Collaborator

@hfekete hfekete 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, there are few minor comments it would not be bad to act on but are not major show stoppers.

def get_yesterday_utc_range():
pacific = pytz.timezone('America/Los_Angeles')
"""Calculate the start of today and yesterday in Pacific Time"""
pacific = pytz.timezone("America/Los_Angeles")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why US LA timezone ? can you use "Canada/Pacific" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Change it to America/Vancouver as agreed.

assert engine is not None


# def test_sftp_connection_succeed(): # pylint:disable=unused-argument
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can remove unused code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.



def test_sqlalchemy_uri_without_instance(monkeypatch):
monkeypatch.delenv("DATABASE_INSTANCE_CONNECTION_NAME", raising=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I havent seen anywhere, but I hope we are not using same DB urls for tests and for the real app :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
Signed-off-by: Chen <Steven.Chen@gov.bc.ca>
@sonarqubecloud
Copy link

@stevenc987 stevenc987 merged commit 534257b into bcgov:main Feb 26, 2026
13 checks passed
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.

2 participants