Skip to content

Fix/ci testing environment - #11

Merged
Matheus904-12 merged 2 commits into
mainfrom
fix/ci-testing-environment
May 7, 2026
Merged

Matheus904-12 merged 2 commits into
mainfrom
fix/ci-testing-environment

Conversation

@Matheus904-12

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 7, 2026 23:02
@vercel

vercel Bot commented May 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
weather-api Ready Ready Preview, Comment May 7, 2026 11:02pm

@Matheus904-12
Matheus904-12 merged commit 91613a8 into main May 7, 2026
4 checks passed
@Matheus904-12 Matheus904-12 linked an issue May 7, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to stabilize the backend CI test run by ensuring required environment variables are present during GitHub Actions execution (so the FastAPI app can import/initialize during tests).

Changes:

  • Added job-level environment variables to .github/workflows/backend-tests.yml to satisfy backend startup requirements in CI.
  • Introduced an extra whitespace-only line at the end of backend/tests/test_api.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
backend/tests/test_api.py Adds an extra whitespace-only line (noise / potential lint issue).
.github/workflows/backend-tests.yml Sets dummy env vars in CI to allow backend initialization during pytest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/tests/test_api.py
assert data["city"] == "Rio de Janeiro"
assert data["temperature"] == 30.0
assert data["description"] == "Ensolarado"

No newline at end of file
Comment on lines +17 to +18
REDIS_HOST: "localhost"
MONGO_URL: "mongodb://localhost:27017"

This branch was successfully deployed

1 active deployment
Preview — d9c9a955 Deployed May 7, 2026 by vercel[bot]
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.

feat: implementar camada de testes unitarios

2 participants