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

Location mock #1453

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Location mock #1453

merged 3 commits into from
Sep 3, 2024

Conversation

RobAndrewHurst
Copy link
Contributor

Description

We need the ability to pass in a custom template to the location.get() function. This can be used in different use cases. The main one at the moment is used to mock locations in the testing environment.

Type of Change

Please delete options that are not relevant, and select all options that apply.

  • ✅ New feature (non-breaking change which adds functionality)
  • ✅ Testing

How have you tested this?

Run the local tests and Look for the location: getTest.

Testing Checklist

Note that the user tests will fail with a public instance. This is something that still needs to be resolved by spoofing a user.

  • ✅ New Tests Added

@RobAndrewHurst RobAndrewHurst added Feature New feature requests or changes to the behaviour or look of existing application features. Testing Changes relating to existing or new unit tests. labels Sep 3, 2024
@RobAndrewHurst RobAndrewHurst self-assigned this Sep 3, 2024
Copy link
Contributor

@AlexanderGeere AlexanderGeere left a comment

Choose a reason for hiding this comment

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

Nice one!

Copy link
Contributor

@simon-leech simon-leech left a comment

Choose a reason for hiding this comment

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

I just pushed one more test to ensure the location has a layer object assigned to it.

Looking good to me :)

Copy link

sonarcloud bot commented Sep 3, 2024

Copy link
Member

@dbauszus-glx dbauszus-glx left a comment

Choose a reason for hiding this comment

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

Lovely work.
image

@RobAndrewHurst RobAndrewHurst merged commit c3fee01 into GEOLYTIX:main Sep 3, 2024
5 checks passed
@RobAndrewHurst RobAndrewHurst deleted the location_mock branch September 3, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature requests or changes to the behaviour or look of existing application features. Testing Changes relating to existing or new unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants