TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #9 · 7 јан.

Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт. Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал. Для таких случаев я набросал простую функцию с командой: kill_on_port() { port=$(lsof -t -i:$1) echo "KILL PROCESS:" $port sudo kill -9 $port } alias killonport="kill_on_port $@" Код поместить в ~/.bashrc и рестартнуть систему. Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт. Bash kill_on_port 8000 Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения. Имя команды можете изменить на любое другое. #linux

Hashtags

Резултати

Пронајдени 5 слични објави

Пребарај: #unittest

当前筛选 #unittest清除筛选
MDC Uzbekistan

@mdcuzbekistan · Post #324 · 23.01.2022 г., 08:14

Dasturni testlash jarayonlari, xUnit bilan amaliyot Bugungi stream ham nasib qilsa ajoyib o'tadi. Sababi, navbatdagi mehmonimiz siz tanigan, bilgan tajribali dasturchilar sirasiga kiradi. Eng qizig'i, suxbat davomida ko'tariladigan mavzu ko'pchilikni qiynashga ulgurgan. Ushbu qiyinchiliklarni ustozimiz bilan birga yengillashtiramiz. Xullas, streamda ko'rishguncha! 🔗 Havola: zoom 👨‍🏫 Mentor:Wahid Abduhakimov #unittest#mentoring#live#stream .NET Uzbekistan Community ______ Telegram | Instagram | Youtube

djangoproject

@djangoproject · Post #179 · 30.09.2016 г., 07:46

https://pypi.python.org/pypi/MutPy/0.4.0 #MutPy is a mutation #testing tool for Python 3.x source code. MutPy supports standard #unittest module, generates YAML reports and has colorful output. It’s apply mutation on AST level. You could boost your mutation testing process with high order mutations (HOM) and code coverage analysis.

djangoproject

@djangoproject · Post #178 · 30.09.2016 г., 07:22

#Hypothesis is a Python library for creating #unit_tests which are simpler to write and more powerful when run, finding edge cases in your code you wouldn’t have thought to look for. It is stable, powerful and easy to add to any existing #test suite. #unittest https://hypothesis.readthedocs.io/en/latest/