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

Testes realisados e resolução de bugs no front #56

Merged
merged 13 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python Tests

on:
push:
branches: [ main , front ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.3'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest concursei_br/tests
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
**/__pycache__/
*.vscode
.vscode/
*.pyc
*.pyo
*.pyd
venv/
.env/
2 changes: 2 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[theme]
base="light"
502 changes: 502 additions & 0 deletions .venv/Scripts/Activate.ps1

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions .venv/Scripts/activate
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly

deactivate () {
# reset old environment variables
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi

# Call hash to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
hash -r 2> /dev/null

if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1:-}"
export PS1
unset _OLD_VIRTUAL_PS1
fi

unset VIRTUAL_ENV
unset VIRTUAL_ENV_PROMPT
if [ ! "${1:-}" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}

# unset irrelevant variables
deactivate nondestructive

VIRTUAL_ENV="C:\Users\Dudu_\Documents\UnB-FGA\UnB-2024.2\MDS\2024-2-Concursei_Br\.venv"
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/Scripts:$PATH"
export PATH

# unset PYTHONHOME if set
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
# could use `if (set -u; : $PYTHONHOME) ;` in bash
if [ -n "${PYTHONHOME:-}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
unset PYTHONHOME
fi

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
PS1="(.venv) ${PS1:-}"
export PS1
VIRTUAL_ENV_PROMPT="(.venv) "
export VIRTUAL_ENV_PROMPT
fi

# Call hash to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
hash -r 2> /dev/null
34 changes: 34 additions & 0 deletions .venv/Scripts/activate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off

rem This file is UTF-8 encoded, so we need to update the current code page while executing it
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
set _OLD_CODEPAGE=%%a
)
if defined _OLD_CODEPAGE (
"%SystemRoot%\System32\chcp.com" 65001 > nul
)

set VIRTUAL_ENV=C:\Users\Dudu_\Documents\UnB-FGA\UnB-2024.2\MDS\2024-2-Concursei_Br\.venv

if not defined PROMPT set PROMPT=$P$G

if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%

set _OLD_VIRTUAL_PROMPT=%PROMPT%
set PROMPT=(.venv) %PROMPT%

if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
set PYTHONHOME=

if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%

set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
set VIRTUAL_ENV_PROMPT=(.venv)

:END
if defined _OLD_CODEPAGE (
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
set _OLD_CODEPAGE=
)
22 changes: 22 additions & 0 deletions .venv/Scripts/deactivate.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@echo off

if defined _OLD_VIRTUAL_PROMPT (
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
)
set _OLD_VIRTUAL_PROMPT=

if defined _OLD_VIRTUAL_PYTHONHOME (
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
set _OLD_VIRTUAL_PYTHONHOME=
)

if defined _OLD_VIRTUAL_PATH (
set "PATH=%_OLD_VIRTUAL_PATH%"
)

set _OLD_VIRTUAL_PATH=

set VIRTUAL_ENV=
set VIRTUAL_ENV_PROMPT=

:END
Binary file added .venv/Scripts/pip.exe
Binary file not shown.
Binary file added .venv/Scripts/pip3.11.exe
Binary file not shown.
Binary file added .venv/Scripts/pip3.exe
Binary file not shown.
Binary file added .venv/Scripts/python.exe
Binary file not shown.
Binary file added .venv/Scripts/pythonw.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions .venv/bin/activate
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ deactivate nondestructive
if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
# transform D:\path\to\venv to /d/path/to/venv on MSYS
# and to /cygdrive/d/path/to/venv on Cygwin
export VIRTUAL_ENV=$(cygpath /home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv)
export VIRTUAL_ENV=$(cygpath '/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv')
else
# use the path as-is
export VIRTUAL_ENV=/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv
export VIRTUAL_ENV='/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv'
fi

_OLD_VIRTUAL_PATH="$PATH"
Expand Down
2 changes: 1 addition & 1 deletion .venv/bin/activate.csh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA
# Unset irrelevant variables.
deactivate nondestructive

setenv VIRTUAL_ENV /home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv
setenv VIRTUAL_ENV '/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv'

set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/"bin":$PATH"
Expand Down
2 changes: 1 addition & 1 deletion .venv/bin/activate.fish
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
# Unset irrelevant variables.
deactivate nondestructive

set -gx VIRTUAL_ENV /home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv
set -gx VIRTUAL_ENV '/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv'

set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/"bin $PATH
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/f2py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/fonttools
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/jsonschema
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/markdown-it
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/normalizer
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/numpy-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/pip
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/pip3
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/pip3.12
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
10 changes: 10 additions & 0 deletions .venv/bin/py.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
from pytest import console_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(console_main())
4 changes: 3 additions & 1 deletion .venv/bin/pyftmerge
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/pyftsubset
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/pygmentize
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
10 changes: 10 additions & 0 deletions .venv/bin/pytest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
from pytest import console_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(console_main())
4 changes: 3 additions & 1 deletion .venv/bin/streamlit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/ttx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
4 changes: 3 additions & 1 deletion .venv/bin/watchmedo
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/home/artur/Documentos/Faculdade/MDS/2024-2-Concursei_Br/.venv/bin/python3
#!/bin/sh
'''exec' "/home/jose/Documents/01 - Estudo/01 - Projects/MDS/2024-2-Concursei_Br/.venv/bin/python3" "$0" "$@"
' '''
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Zope Public License (ZPL) Version 2.1

A copyright notice accompanies this license document that identifies the
copyright holders.

This license has been certified as open source. It has also been designated as
GPL compatible by the Free Software Foundation (FSF).

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions in source code must retain the accompanying copyright
notice, this list of conditions, and the following disclaimer.

2. Redistributions in binary form must reproduce the accompanying copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Names of the copyright holders must not be used to endorse or promote
products derived from this software without prior written permission from the
copyright holders.

4. The right to distribute this software or to use it for any purpose does not
give you the right to use Servicemarks (sm) or Trademarks (tm) of the
copyright
holders. Use of them is covered by separate agreement with the copyright
holders.

5. If any files are modified, you must cause the modified files to carry
prominent notices stating that you changed the files and the date of any
change.

Disclaimer

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading
Loading