vos-data-utils 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vos-data-utils might be problematic. Click here for more details.

vdutils/library/data.py CHANGED
@@ -1,4 +1,5 @@
1
1
  from typing import (
2
+ List,
2
3
  Dict
3
4
  )
4
5
 
@@ -1888,4 +1889,53 @@ ADD_BJD = [
1888
1889
 
1889
1890
  DELETE_BJD = [
1890
1891
  "3600000000", # 세종특별자치시 법정동코드 [3600000000, 3611000000] 복수 존재로 3600000000 삭제
1891
- ]
1892
+ ]
1893
+
1894
+ SGG_SPLIT_LIST: List[str] = {
1895
+ "고양덕양구",
1896
+ "고양일산동구",
1897
+ "고양일산서구",
1898
+ "성남분당구",
1899
+ "성남수정구",
1900
+ "성남중원구",
1901
+ "수원권선구",
1902
+ "수원영통구",
1903
+ "수원장안구",
1904
+ "수원팔달구",
1905
+ "안산단원구",
1906
+ "안산상록구",
1907
+ "안양동안구",
1908
+ "안양만안구",
1909
+ "용인기흥구",
1910
+ "용인수지구",
1911
+ "용인처인구",
1912
+ "전주덕진구",
1913
+ "전주완산구",
1914
+ "창원마산합포구",
1915
+ "창원마산회원구",
1916
+ "창원성산구",
1917
+ "창원의창구",
1918
+ "창원진해구",
1919
+ "천안동남구",
1920
+ "천안서북구",
1921
+ "청주상당구",
1922
+ "청주서원구",
1923
+ "청주청원구",
1924
+ "청주흥덕구",
1925
+ "포항남구",
1926
+ "포항북구",
1927
+ "부천오정구",
1928
+ "부천원미구",
1929
+ "부천소사구",
1930
+ }
1931
+
1932
+ LAST_NM_REFINE_MAP: Dict[str, str] = {
1933
+ "북문로1가동": "북문로1가",
1934
+ "북문로2가동": "북문로2가",
1935
+ "북문로3가동": "북문로3가",
1936
+ "남문로1가동": "남문로1가",
1937
+ "남문로2가동": "남문로2가",
1938
+ "대율리": "대률리",
1939
+ "어용리": "어룡리",
1940
+ "청룡리": "청용리",
1941
+ }
@@ -6,9 +6,7 @@ from typing import (
6
6
  Dict
7
7
  )
8
8
  sys.path.append(os.getcwd())
9
- from vdutils.convaddr import (
10
- ConvAddr
11
- )
9
+ from vdutils.convaddr import ConvAddr
12
10
 
13
11
 
14
12
  class TestClass(unittest.TestCase):
@@ -36,23 +36,27 @@ class TestClass(unittest.TestCase):
36
36
 
37
37
 
38
38
  def test_sym_spell(self):
39
+ """클래스 인스턴스 초기 생성자 sym_spell 타입 테스트 메소드"""
39
40
  self.assertTrue(self.instance.sym_spell, SymSpell())
40
41
 
41
42
 
42
43
  def test_dictionary_path(self):
44
+ """클래스 인스턴스 초기 생성자 dictionary_path 타입, 값 테스트 메소드"""
43
45
  self.assertTrue(self.instance.dictionary_path, str)
44
46
  self.assertEqual(
45
47
  self.instance.dictionary_path,
46
- f'{os.getcwd()}/mjjo/data/date_dictionary.txt'
48
+ f'{os.getcwd()}/vdutils/data/date/date_dictionary.txt'
47
49
  )
48
50
 
49
51
 
50
52
  def test_this_year(self):
53
+ """클래스 인스턴스 초기 생성자 this_year 타입, 값 테스트 메소드"""
51
54
  self.assertTrue(self.instance.this_year, int)
52
55
  self.assertEqual(self.instance.this_year, datetime.now().year)
53
56
 
54
57
 
55
58
  def test_this_year_two_length(self):
59
+ """클래스 인스턴스 초기 생성자 this_year_tow_length 타입, 값 테스트 메소드"""
56
60
  self.assertTrue(self.instance.this_year_two_length, int)
57
61
  self.assertEqual(
58
62
  self.instance.this_year_two_length,
@@ -61,6 +65,7 @@ class TestClass(unittest.TestCase):
61
65
 
62
66
 
63
67
  def test_max_edit_distance(self):
68
+ """클래스 인스턴스 초기 생성자 max_edit_distance 타입, 값 테스트 메소드"""
64
69
  self.assertTrue(self.instance.max_edit_distance, int)
65
70
  self.assertTrue(self.instance.max_edit_distance, 2)
66
71