-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(room): 전용면적, 층, 엘리베이터, 관리비 항목 추가 (#41)
- Loading branch information
Mincheol Kim
committed
Aug 11, 2020
1 parent
a0c9fcd
commit 0533780
Showing
5 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
from src.apps.rooms.models.domain.dabang import Dabang | ||
from src.apps.rooms.services import get_dabang_room_detail | ||
from src.apps.rooms.models.domain.zigbang import Zigbang | ||
from src.apps.rooms.services import ( | ||
get_dabang_room_detail, | ||
get_zigbang_room_detail, | ||
) | ||
from src.core.exceptions import CrawlingException | ||
|
||
|
||
def test_get_dabang() -> None: | ||
try: | ||
dabang: Dabang = get_dabang_room_detail( | ||
room_id="5f0681178839af708334481e" | ||
room_id="5f2ce8637601ce75301269cf" | ||
) | ||
room_item = dabang.to_room() | ||
except CrawlingException as err: | ||
assert err | ||
else: | ||
print(dabang) | ||
print(room_item) | ||
|
||
|
||
def test_get_zigbang() -> None: | ||
try: | ||
zigbang: Zigbang = get_zigbang_room_detail(room_id=23126067) | ||
room_item = zigbang.to_room() | ||
except CrawlingException as err: | ||
assert err | ||
else: | ||
print(room_item) |