Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: renaming followup (#8)

authored by

Elijah Seed-Arita and committed by
GitHub
4c095160 50eb4bd9

+24 -24
+2 -2
osprey_worker/src/osprey/engine/stdlib/udfs/tests/test_phone_country.py
··· 15 15 16 16 @pytest.mark.parametrize( 17 17 'phone_number,country', 18 - [('+13467025665', 'US'), ('+61455275206', 'AU'), ('+5541991152762', 'BR')], 18 + [('+15555555555', 'US'), ('+65555555555', 'AU'), ('+5545555555555', 'BR')], 19 19 ) 20 20 def test_accepts_valid_country_code(execute: ExecuteFunction, phone_number: str, country: str) -> None: 21 21 result = execute(f'PhoneCountryStr = PhoneCountry(phone_number="{phone_number}")') ··· 24 24 25 25 @pytest.mark.parametrize( 26 26 'phone_number', 27 - ['not a number', '132953762988', '1398456789001'], 27 + ['not a number', '135555555555', '1395555555555'], 28 28 ) 29 29 def test_invalid_country_code_failure(execute: ExecuteFunction, phone_number: str) -> None: 30 30 result = execute(f'PhoneCountryStr = PhoneCountry(phone_number="{phone_number}")')
+22 -22
osprey_worker/src/osprey/engine/stdlib/udfs/tests/test_strings.py
··· 173 173 @dataclass 174 174 class Scenario: 175 175 s: str 176 - expects: Union[str, Iterable[str]] = ('teen',) 176 + expects: Union[str, Iterable[str]] = ('text',) 177 177 not_expects: Iterable[str] = ('|',) 178 178 179 179 180 180 @pytest.mark.parametrize( 181 181 's', 182 182 [ 183 - Scenario('🔞t33n leaks🔞'), 184 - Scenario('TEEΠ 17-', ['teen', '17']), 185 - Scenario('Te.en'), 186 - Scenario('tee∏'), 187 - Scenario('gir|s 2334', ['girls', '2334']), 188 - Scenario('t33n gir |s |7-', ['17']), 189 - Scenario('𝐓𝐄𝐄𝐍'), 190 - Scenario('𝚃𝙴𝙴𝙽'), 191 - Scenario('tee刀'), 192 - Scenario('te3ns'), 193 - Scenario('tee∏'), 194 - Scenario('tee∩'), 195 - Scenario('t33∩'), 196 - Scenario('teeη'), 183 + Scenario('🔞t3xt'), 184 + Scenario('ΠOPQ 100-', ['nop', '100']), 185 + Scenario('Te.xt'), 186 + Scenario('∏opq'), 187 + Scenario('dat@ 2334', ['data', '2334']), 188 + Scenario('t3xt |00-', ['100']), 189 + Scenario('𝐓𝐄𝐗𝐓'), 190 + Scenario('𝚃𝙴𝚇𝚃'), 191 + Scenario('tex刀'), 192 + Scenario('te×ts'), 193 + Scenario('∏opq'), 194 + Scenario('nopq'), 195 + Scenario('t3x∩'), 196 + Scenario('texη'), 197 197 Scenario('Ç', ['c']), 198 198 Scenario('⒜,⒝,⒞,⒟,⒠,⒡,⒢,⒣,⒤,⒥,⒦,⒧,⒨,⒩,⒪,⒫,⒬,⒭,⒮,⒯,⒰,⒱,⒲,⒳,⒴,⒵', string.ascii_lowercase), 199 199 Scenario('Ⓐ,Ⓑ,Ⓒ,Ⓓ,Ⓔ,Ⓕ,Ⓖ,Ⓗ,Ⓘ,Ⓙ,Ⓚ,Ⓛ,Ⓜ,Ⓝ,Ⓞ,Ⓟ,Ⓠ,Ⓡ,Ⓢ,Ⓣ,Ⓤ,Ⓥ,Ⓦ,Ⓧ,Ⓨ,Ⓩ', string.ascii_lowercase), ··· 202 202 Scenario('🅐,🅑,🅒,🅓,🅔,🅕,🅖,🅗,🅘,🅙,🅚,🅛,🅜,🅝,🅞,🅟,🅠,🅡,🅢,🅣,🅤,🅥,🅦,🅧,🅨,🅩', string.ascii_lowercase), 203 203 Scenario('🅰,🅱,🅲,🅳,🅴,🅵,🅶,🅷,🅸,🅹,🅺,🅻,🅼,🅽,🅾,🅿,🆀,🆁,🆂,🆃,🆄,🆅,🆆,🆇,🆈,🆉', string.ascii_lowercase), 204 204 Scenario('🇦,🇧,🇨,🇩,🇪,🇫,🇬,🇭,🇮,🇯,🇰,🇱,🇲,🇳,🇴,🇵,🇶,🇷,🇸,🇹,🇺,🇻,🇼,🇽,🇾,🇿', string.ascii_lowercase), 205 - Scenario('test plaϲeholder', 'test placeholder'), # the 'ϲ' is irregular 205 + Scenario('plaϲeholder', 'placeholder'), # the 'ϲ' is irregular 206 206 Scenario('EXAMΡLE', 'example'), # the 'P' is irregular 207 207 Scenario('droid', 'droid'), # the whole thing is irregular 208 208 Scenario('🅳🆁🅾🅸🅳', 'droid'), ··· 239 239 (f'https://{QUICK_BROWN_FOX_DOMAIN_1}', [QUICK_BROWN_FOX_DOMAIN_1]), # simple domain 240 240 (f'http://{QUICK_BROWN_FOX_DOMAIN_1}', [QUICK_BROWN_FOX_DOMAIN_1]), # simple domain 241 241 ( 242 - f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations', 242 + f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations', 243 243 [QUICK_BROWN_FOX_DOMAIN_1], 244 244 ), # complex domain 245 245 ( 246 - f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations and then a markdown [hello.com](http://{QUICK_BROWN_FOX_DOMAIN_2}/for/this).', 246 + f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations and then a markdown [hello.com](http://{QUICK_BROWN_FOX_DOMAIN_2}/for/this).', 247 247 [QUICK_BROWN_FOX_DOMAIN_1, QUICK_BROWN_FOX_DOMAIN_2], 248 248 ), # complex domain and markdown domain 249 249 ( ··· 282 282 (QUICK_BROWN_FOX_URL_1, [QUICK_BROWN_FOX_URL_1]), # simple url 283 283 (f'http://{QUICK_BROWN_FOX_DOMAIN_1}', [f'http://{QUICK_BROWN_FOX_DOMAIN_1}']), # simple url 284 284 ( 285 - f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations', 286 - [f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations'], 285 + f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations', 286 + [f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations'], 287 287 ), # complex url 288 288 ( 289 - f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations and then a markdown [hello.com](http://{QUICK_BROWN_FOX_DOMAIN_2}/for/this).', 289 + f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations and then a markdown [hello.com](http://{QUICK_BROWN_FOX_DOMAIN_2}/for/this).', 290 290 [ 291 - f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/nintendo_switch?six=picturesque#locations', 291 + f'http://{QUICK_BROWN_FOX_DOMAIN_1}/for/device?six=picturesque#locations', 292 292 f'http://{QUICK_BROWN_FOX_DOMAIN_2}/for/this', 293 293 ], 294 294 ), # complex domain and markdown domain