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

Resolved pytest errors by correctly annotating ORM relationships with Mapped type #108

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

roshnaeem
Copy link
Contributor

Pull Request

Description

Fixed pytests failing because of sqlalchemy, see also #107

Fixes #88

@roshnaeem
Copy link
Contributor Author

@peterdudfield , this PR will close #88

@roshnaeem
Copy link
Contributor Author

roshnaeem commented Mar 18, 2024

@peterdudfield , i think we need to update sqlalchemy version here https://github.com/openclimatefix/pv-site-datamodel/blob/main/poetry.lock#L16 to enable it on pv-site-app. To fix openclimatefix/pv-site-api#133

@peterdudfield peterdudfield changed the base branch from main to development March 19, 2024 21:02
@peterdudfield peterdudfield merged commit 9fd14b6 into openclimatefix:development Mar 19, 2024
@peterdudfield
Copy link
Contributor

@peterdudfield
Copy link
Contributor

can you run pytest on this repo?

@roshnaeem
Copy link
Contributor Author

roshnaeem commented Mar 19, 2024

@peterdudfield, I checked pytest before opening PR, for me all tests are passing, i have attached a screenshot here. Let me check why the tests are failing, and open a PR for it
Screenshot 2024-03-19 at 11 15 57 PM

@peterdudfield
Copy link
Contributor

Screenshot 2024-03-20 at 07 46 45
werid -

@peterdudfield
Copy link
Contributor

see #110

@roshnaeem
Copy link
Contributor Author

@peterdudfield , let me check.

@peterdudfield
Copy link
Contributor

If you make a new PR, the tests should automatically run, so you'll be able to see whats going on

peterdudfield added a commit that referenced this pull request Mar 27, 2024
* updated version of sqlalchemy (#107)

* Resolved pytest errors by correctly annotating ORM relationships with Mapped type (#108)

* updated version of sqlalchemy

* fixed the failing of pytest because of sqlalchemy

---------

Co-authored-by: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com>

* lint

* fix

---------

Co-authored-by: Rosheen Naeem <rosheennaeem4@gmail.com>
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.

Update SQLAlchemy > 2.0
2 participants