Skip to content

Commit

Permalink
Lagt inn fame funksjoner
Browse files Browse the repository at this point in the history
  • Loading branch information
EdvardGarmannslund committed Apr 8, 2024
1 parent 6fd7644 commit 4041f17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ssb_konjunk/fame.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def change_date_format_fame(series: pd.Series) -> pd.Series:

def write_out_fame_format_txt(
names: pd.Series, dates: pd.Series, values: pd.Series, gcp_path: str
):
) -> None:
"""Function to write out txt file in fame format.
Args:
Expand Down
8 changes: 3 additions & 5 deletions tests/test_fame.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from datetime import datetime
import pandas as pd

import pytest

from ssb_konjunk.fame import change_date_format_fame

"""Test of function change_date_format_fame"""


def test_change_date_format_fame() -> None:
# Test with a valid year and month
series = pd.Series(
Expand All @@ -24,5 +22,5 @@ def test_change_date_format_fame() -> None:
"2024:1:3",
]
)
assert change_date_format_fame(series).equals(fame_series)

assert change_date_format_fame(series).equals(fame_series)

0 comments on commit 4041f17

Please sign in to comment.