Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/omini_rtksync/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def _execute_cycle(self, reason: str = "scheduled_interval") -> Dict[str, Any]:
start_ts = time.time()
start_iso = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S UTC")

ts_str = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
get_logger().info(f"[CRON] Ciclo disparado ({reason}). Inspecionando conexoes de contas OAuth...")

try:
Expand Down
1 change: 0 additions & 1 deletion src/omini_rtksync/sessao.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import base64
import hashlib
import hmac
import os
import secrets
import time
from typing import Optional
Expand Down
2 changes: 1 addition & 1 deletion src/omini_rtksync/sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def testar_conexao_oidc(issuer: str, client_id: str = "", client_secret: str = "
if not _transporte_seguro(val):
return False, f"Endpoint '{endpoint}' não utiliza HTTPS."

return True, f"Conexão OIDC validada com sucesso! Endpoints encontrados."
return True, "Conexão OIDC validada com sucesso! Endpoints encontrados."

testa_conexao_oidc = testar_conexao_oidc

Expand Down
4 changes: 2 additions & 2 deletions tests/test_irmaos_identicos.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
# leitura para `gateway.py`, e isso continua em aberto.
TETOS_DE_DIVERGENCIA = {
"models.py": 7,
"render.py": 862,
"web.py": 689,
"render.py": 560,
"web.py": 578,
}

# O que cada produto troca de propósito, e que não conta como divergência.
Expand Down
2 changes: 0 additions & 2 deletions tests/test_protecao.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
freio tem de já estar instalado quando ele apertar.
"""

import hashlib
import time
import unittest

from omini_rtksync import protecao
Expand Down
6 changes: 3 additions & 3 deletions tests/test_web_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import urllib.error
import urllib.request

from omini_rtksync.config import Settings
from omini_rtksync import web as web_server


class NoRedirect(urllib.request.HTTPRedirectHandler):
"""Nao segue o 303: o teste precisa ver a resposta, nao o destino."""
Expand All @@ -18,9 +21,6 @@ def redirect_request(self, req, fp, code, msg, headers, newurl):
return None


from omini_rtksync.config import Settings
from omini_rtksync import web as web_server

PORT = 19394
BASE = f"http://127.0.0.1:{PORT}"

Expand Down
Loading