Browse Source

chore: fix CS

pull/449/head
Jérôme Deuchnord 3 days ago
parent
commit
495850fb40
4 changed files with 4 additions and 13 deletions
  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 View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"


+ 1
- 4
tests/dates.py View File

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


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


New Moon New Moon
First Quarter on Sunday, February 2, 2020 at 1:41 AM 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. Note: All the hours are given in UTC.
""" """
)




def test_with_incorrect_date_values(): def test_with_incorrect_date_values():


+ 1
- 4
tests/output.py View File

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




def test_latex_output(): def test_latex_output():


+ 1
- 4
tests/position.py View File

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


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


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


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




def test_with_position(): def test_with_position():


Loading…
Cancel
Save