Skip to content

Commit 5a8b940

Browse files
author
Niklas Larsson
committed
added kpi summary, report metadata, sectors and extended report model. Including tests
1 parent 092ae3d commit 5a8b940

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1427
-901
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Project specific
2+
tests/fixtures/
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ elif [ "$1" == "--coverage" ]; then
1818
elif [ "$1" == "--models" ]; then
1919
echo "Running model tests only..."
2020
python3 -m pytest tests/test_models.py tests/test_model_validation.py
21+
elif [ "$1" == "--endpoints" ]; then
22+
echo "Running client tests only..."
23+
python3 -m pytest tests/test_endpoints.py
2124
elif [ "$1" == "--edge-cases" ]; then
2225
echo "Running edge case tests only..."
2326
python3 -m pytest tests/test_edge_cases.py

src/borsdata_client/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010

1111
from .client import BorsdataClient, BorsdataClientError
1212
from .models import (
13-
Instrument,
1413
Branch,
15-
Market,
14+
BuybackRow,
1615
Country,
17-
Sector,
18-
StockPrice,
19-
Report,
20-
KpiMetadata,
16+
DividendDate,
2117
InsiderRow,
22-
ShortPosition,
23-
BuybackRow,
18+
Instrument,
2419
InstrumentDescription,
25-
ReportCalendarDate,
26-
DividendDate,
20+
KpiMetadata,
2721
KpiValue,
22+
Market,
23+
Report,
24+
ReportCalendarDate,
25+
Sector,
26+
ShortPosition,
27+
StockPrice,
2828
StockPriceLastValue,
2929
StockSplit,
3030
TranslationItem,
@@ -52,4 +52,4 @@
5252
"StockPriceLastValue",
5353
"StockSplit",
5454
"TranslationItem",
55-
]
55+
]

0 commit comments

Comments
 (0)