Skip to content

Commit

Permalink
hotfix: add delivery date column for stock receipts (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedykori committed Feb 27, 2022
1 parent 59191b2 commit 4756f05
Show file tree
Hide file tree
Showing 13 changed files with 6,738 additions and 5,669 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: mypy
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
mypy .
pytest:
Expand Down Expand Up @@ -97,6 +98,7 @@ jobs:

- name: Install requirements
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
sudo apt-get update
sudo apt-get install postgis gdal-bin libgdal-dev
pip install -r requirements/local.txt && pip install -r requirements/production.txt
Expand All @@ -105,12 +107,14 @@ jobs:
- name: Set up Django
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
python manage.py migrate
python manage.py createcachetable
python manage.py collectstatic --noinput
- name: Run tests and collect coverage
run: |
export LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
pytest
coveralls --service=github
Expand Down
2 changes: 1 addition & 1 deletion fahari/common/views/mixins/drf_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_excel_io(self, **kwargs) -> EIO:
excel_io_class = self.get_excel_io_class()
default_kwargs = self.get_excel_io_kwargs()
default_kwargs.update(kwargs)
return excel_io_class(**default_kwargs) # type: ignore
return excel_io_class(**default_kwargs)

def get_excel_io_kwargs(self) -> Dict[str, Any]:
"""Return kwargs to be used when initializing an excel io instance."""
Expand Down
2 changes: 1 addition & 1 deletion fahari/misc/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ class ProcessGoogleSheetRowError(RuntimeError):
def __init__(self, row: Sequence[str], row_index: int, *args, **kwargs):
self.row: Sequence[str] = tuple(row)
self.row_index: int = row_index
super().__init__(*args, **kwargs) # type: ignore
super().__init__(*args, **kwargs) # noqa
7 changes: 7 additions & 0 deletions fahari/misc/tests/helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import json
from typing import Any, Sequence


def load_google_sheet_test_data() -> Sequence[Any]:
with open("fahari/misc/tests/resources/google_sheet_test_data.json") as f:
return json.load(f)

0 comments on commit 4756f05

Please sign in to comment.