Преглед на файлове

chore: fix CS

pull/449/head
Jérôme Deuchnord преди 3 дни
родител
ревизия
495850fb40
променени са 4 файла, в които са добавени 4 реда и са изтрити 13 реда
  1. +1
    -1
      kosmorro/locales/messages.pot
  2. +1
    -4
      tests/dates.py
  3. +1
    -4
      tests/output.py
  4. +1
    -4
      tests/position.py

+ 1
- 1
kosmorro/locales/messages.pot Целия файл

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2026-01-01 10:39+0100\n"
"POT-Creation-Date: 2026-01-22 17:08+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"


+ 1
- 4
tests/dates.py Целия файл

@@ -9,9 +9,7 @@ def test_with_date():
result = execute(KOSMORRO + arg)
assert result.successful

assert (
result.stdout
== """Monday, January 27, 2020
assert result.stdout == """Monday, January 27, 2020

New Moon
First Quarter on Sunday, February 2, 2020 at 1:41 AM
@@ -21,7 +19,6 @@ Expected events:

Note: All the hours are given in UTC.
"""
)


def test_with_incorrect_date_values():


+ 1
- 4
tests/output.py Целия файл

@@ -15,9 +15,7 @@ def test_json_output():
KOSMORRO + ["--position=50.5876,3.0624", "-d2020-01-27", "--format=json"]
)
assert result.successful
assert (
result.stdout
== """{
assert result.stdout == """{
"ephemerides": [
{
"object": {
@@ -150,7 +148,6 @@ def test_json_output():
]
}
"""
)


def test_latex_output():


+ 1
- 4
tests/position.py Целия файл

@@ -8,9 +8,7 @@ from .utils import (

def check_command_return(result):
assert result.successful
assert (
result.stdout
== """Monday, January 27, 2020
assert result.stdout == """Monday, January 27, 2020

Object Rise time Culmination time Set time
-------- ----------- ------------------ ----------
@@ -33,7 +31,6 @@ Expected events:

Note: All the hours are given in UTC.
"""
)


def test_with_position():


Зареждане…
Отказ
Запис