Skip to content

Commit

Permalink
Merge pull request #11 from fga-eps-mds/develop
Browse files Browse the repository at this point in the history
MAJOR RELEASE
  • Loading branch information
nYCSTs authored Dec 11, 2023
2 parents 40f5cf8 + a1e97e3 commit a7af670
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 10 deletions.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# 2023.2-UnB-TV-VideoService
# 2023.2-UnB-TV-VideoService

<div align="center">
<img src="./docs/assets/unb-removebg-preview.png" alt="logo UNBTV"> </div>

## Sobre

O projeto visa o desenvolvimento de uma aplicação Web e Mobile para a UnB-TV, com o objetivo de centralizar e disponibilizar de forma unificada todo o conteúdo oferecido pela UnB-TV, incluindo vídeos e transmissões ao vivo, sendo desenvolvida no segundo semestre de 2023 pelas disciplinas de EPS e MDS da Universidade de Brasília.

## Ambientes

[Documentação](https://github.com/fga-eps-mds/2023.2-UnB-TV-DOC)
[Users](https://github.com/fga-eps-mds/2023.2-UnB-TV-Users)
[Admin](https://github.com/fga-eps-mds/2023.2-UnB-TV-Admin)
[Video](https://github.com/fga-eps-mds/2023.2-UnB-TV-VideoService)
[Gateway](https://github.com/fga-eps-mds/2023.2-UnB-TV-API-Gateway)
[Frontend](https://github.com/fga-eps-mds/2023.2-UnB-TV-Frontend)

## Acessando o repositório localmente

### Requisitos

- docker e docker compose

Primeiro passo é instalar o docker e docker compose, para isso siga os passos de instalação do [docker](https://docs.docker.com/engine/install/) e [docker compose](https://docs.docker.com/compose/install/).

Execute o servidor local:

```
docker compose up
```

Acessar o localhost em: http://localhost:8001

## Equipe

| Foto | Nome | Github | Email | Matrícula |
| :-----------------------------------------------------------------------------------------------------------------------------: | :-------------------------------: | :----------------: | :----------------------------: | :-------: |
| <img width="100px" style="border-radius:10%" src="https://github.com/DaviMarinho.png" alt="Davi Marinho da Silva Campos"> | Davi Marinho da Silva Campos | @DaviMarinho | [email protected] | 190026600 |
| <img width="100px" style="border-radius:10%" src="https://github.com/Diego-Carlito.png" alt="Diego Carlito Rodrigues de Souza"> | Diego Carlito Rodrigues de Souza | @Diego-Carlito | <[email protected]> | 221007690 |
| <img width="100px" style="border-radius:10%" src="https://github.com/eric-kingu.png" alt="Eric Akio Lages Nishimura"> | Eric Akio Lages Nishimura | @eric-kingu | <[email protected]> | 190105895 |
| <img width="100px" style="border-radius:10%" src="https://github.com/GabrielaTiago.png" alt="Gabriela Tiago de Araujo"> | Gabriela Tiago de Araujo | @GabrielaTiago | <[email protected]> | 190028475 |
| <img width="100px" style="border-radius:10%" src="https://github.com/Gabrielle-Ribeiro.png" alt="Gabrielle Ribeiro Gomes"> | Gabrielle Ribeiro Gomes | @Gabrielle-Ribeiro | [email protected] | 170011020 |
| <img width="100px" style="border-radius:10%" src="https://github.com/geraldovictor.png" alt="Geraldo Victor Alves Barbosa"> | Geraldo Victor Alves Barbosa | @geraldovictor | [email protected] | 170011119 |
| <img width="100px" style="border-radius:10%" src="https://github.com/cansancaojennifer.png" alt="Jennifer Costa Cansanção"> | Jennifer Costa Cansanção | @cansancaojennifer | <[email protected]> | 221007733 |
| <img width="100px" style="border-radius:10%" src="https://github.com/joao15victor08.png" alt="Jennifer Costa Cansanção"> | João Victor de Oliveira Matos | @joao15victor08 | [email protected] | 170013987 |
| <img width="100px" style="border-radius:10%" src="https://github.com/nYCSTs.png" alt="Lucas da Cunha Andrade"> | Lucas da Cunha Andrade | @nYCSTs | [email protected] | 180105256 |
| <img width="100px" style="border-radius:10%" src="https://github.com/Marcosatc147.png" alt="Marcos Antonio Teles de Castilhos"> | Marcos Antonio Teles de Castilhos | @Marcosatc147 | <[email protected]> | 221008300 |
| <img width="100px" style="border-radius:10%" src="https://github.com/RaisSabeAndrade.png" alt="Raissa Andrade Silveira"> | Raissa Andrade Silveira | @RaisSabeAndrade | <[email protected]> | 221035077 |
| <img width="100px" style="border-radius:10%" src="https://github.com/castroricardo1.png" alt="Ricardo de Castro Loureiro"> | Ricardo de Castro Loureiro | @castroricardo1 | [email protected] | 200043111 |
| <img width="100px" style="border-radius:10%" src="https://github.com/savioc2.png" alt="Ana Carolina Rodrigues Leite"> | Sávio Cunha de Carvalho | @savioc2 | [email protected] | 180130889 |
| <img width="100px" style="border-radius:10%" src="https://github.com/vitoriaaquere.png" alt="Vitória Aquere Matos"> | Vitória Aquere Matos | @vitoriaaquere | <[email protected]> | 190096616 |
16 changes: 8 additions & 8 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
sonar.projectKey=fga-eps-mds_2023.2-UnB-TV-Admin
sonar.projectKey=fga-eps-mds_2023.2-UnB-TV-VideoService
sonar.organization=fga-eps-mds-1

sonar.sources=src
sonar.tests=tests

sonar.exclusions=__pycache__, tests

sonar.sourceEncoding=UTF-8
sonar.host.url=https://sonarcloud.io
sonar.language=py

sonar.sources=src
sonar.exclusions=tests
sonar.python.version=3.11.5
sonar.python.xunit.reportPath=junit.xml
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.coverage.reportPaths=coverage.xml
sonar.coverage.exclusions=tests/*.py

sonar.sourceEncoding=UTF-8
13 changes: 12 additions & 1 deletion tests/test_schedule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from fastapi.testclient import TestClient
from unittest.mock import patch

from src.main import app
from src.constants import errorMessages
Expand All @@ -26,4 +27,14 @@ def test_schedule_get_schedule_specific_day(self):
response = client.get("/api/schedule/", params=params)
data = response.json()
assert response.status_code == 200
assert len(data) > 0
assert len(data) > 0

def test_schedule_get_schedule_day_exception_handling(self):
with patch("src.controller.scheduleController.requests.get") as mock_get:
mock_get.side_effect = Exception("Test exception")

response = client.get("/api/schedule/")
data = response.json()

assert response.status_code == 400
assert data['error'] == errorMessages.ERROR_RETRIEVING_SCHEDULE

0 comments on commit a7af670

Please sign in to comment.