RUVIDEO
Поделитесь видео 🙏

8. Testing Delete in our Elixir REST API Project

📁 Обучение 👁️ 18 📅 04.12.2023

Today, we're advancing further, focusing on the next key function in our 'accounts.ex' context file - the 'delete' function. As we've thoroughly explored, this file encompasses our fundamental CRUD operations - create, read, update, and delete.

In our past videos, we've designed and employed a factory to create the data essential for our tests, a strategy we'll persist in today's video. Remember that when interacting with database tables, we always necessitate two forms of data - valid and invalid.

As our applications evolve, the importance of sustaining a singular source of setup data escalates. This not only simplifies our testing process but also, in the event of a schema definition modification, this single source is generally the only element needing an update.

Building upon our foundational understanding, we'll remain faithful to our existing factory in conjunction with the ExMachina library. ExMachina is a phenomenal resource that eases the creation of test data and associations, harmonizing perfectly with Ecto.

So, let's delve in and master how to effectively test the 'delete' function in our context file!

Subscribe now, and we'll walk through a hands-on introduction to Phoenix and Elixir. If you want to learn how to code in Elixir, this Elixir tutorial is the perfect introduction! I will teach you the basics of setting up a RESTful API and programming concepts, so you can start building powerful applications in this beautiful language. Start learning with this Elixir programming tutorial today and see how easy it is to get started and learn Elixir!


✅✅SOLUTION: https://github.com/BackendStuff/real_deal_api/tree/8_TESTING_delete




SUPPORT BACKEND STUFF
---------------------------------------------------
??Check out my podcast: https://www.hiredgunapps.com/podcast




??NEED HELP?? Join the Discord Server: https://discord.gg/HcnjPsWATg


#ElixirRESTAPI #DataCreationTesting #ExMachina

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «8. Testing Delete in our Elixir REST API Project», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.