Merge pull request #453 feature-NEWDWH2021-1775 into develop-v5.1.0
This commit is contained in:
commit
0be701236b
@ -1,15 +1,15 @@
|
||||
FROM python:3.9
|
||||
FROM python:3.12-slim-bookworm
|
||||
|
||||
ENV TZ="Asia/Tokyo"
|
||||
# pythonの標準出力をバッファリングしないフラグ
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
# pythonのバイトコードを生成しないフラグ
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY Pipfile Pipfile.lock ./
|
||||
RUN \
|
||||
apt update -y && \
|
||||
# パッケージのセキュリティアップデートのみを適用するコマンド
|
||||
apt install -y unattended-upgrades && \
|
||||
unattended-upgrades && \
|
||||
pip install --upgrade pip wheel setuptools && \
|
||||
pip install pipenv --no-cache-dir && \
|
||||
pipenv install --system --deploy && \
|
||||
pip uninstall -y pipenv virtualenv-clone virtualenv
|
||||
|
||||
@ -23,4 +23,4 @@ pytest-html = "*"
|
||||
moto = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.9"
|
||||
python_version = "3.12"
|
||||
|
||||
820
ecs/crm-datafetch/Pipfile.lock
generated
820
ecs/crm-datafetch/Pipfile.lock
generated
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
|
||||
### ツールのバージョン
|
||||
|
||||
- Python 3.9.x
|
||||
- Python 3.12.x
|
||||
- PipEnv(Pythonの依存関係管理用モジュール)
|
||||
|
||||
### 開発環境
|
||||
|
||||
@ -142,7 +142,7 @@ class TestS3Client:
|
||||
"""
|
||||
with pytest.raises(Exception) as e:
|
||||
S3Client()
|
||||
assert e.value.args[0] == "__init__() missing 1 required positional argument: 'bucket_name'"
|
||||
assert e.value.args[0] == "S3Client.__init__() missing 1 required positional argument: 'bucket_name'"
|
||||
|
||||
|
||||
class TestConfigBucket:
|
||||
|
||||
@ -652,7 +652,8 @@ class TestSalesforceApiClient:
|
||||
|
||||
actual = sut.fetch_sf_data(soql)
|
||||
assert len(actual) > 0
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeSpecial"
|
||||
print(dict(actual[0]))
|
||||
assert dict(actual[0])["RelationshipTest__r"]["RecordType"]["DeveloperName"] == "RecordTypeNormal"
|
||||
|
||||
def test_raise_create_instance_cause_auth_failed(self, monkeypatch):
|
||||
"""
|
||||
|
||||
@ -99,8 +99,9 @@ class TestCounterObject:
|
||||
sut = CounterObject()
|
||||
sut.describe(1)
|
||||
|
||||
print(str(e.value))
|
||||
# Expects
|
||||
assert str(e.value) == 'describe() takes 1 positional argument but 2 were given'
|
||||
assert str(e.value) == 'CounterObject.describe() takes 1 positional argument but 2 were given'
|
||||
|
||||
def test_increment(self) -> int:
|
||||
"""
|
||||
|
||||
@ -4,6 +4,8 @@ cd ../../ecs/crm-datafetch || { echo "Error: ディレクトリ変更に失敗
|
||||
|
||||
pipenv update
|
||||
|
||||
docker pull python:3.12-slim-bookworm
|
||||
|
||||
aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 826466435614.dkr.ecr.ap-northeast-1.amazonaws.com
|
||||
|
||||
docker build -t mbj-newdwh2021-staging-crm-datafetch-ecr . --no-cache
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user