# Building Tests for New discourse\_api Endpoints

**URL:** <https://meta.discourse.org/t/building-tests-for-new-discourse-api-endpoints/118639>\
**Category:** Development\
**Created:** [24.Май.2019 22:21:24 UTC](https://meta.discourse.org/t/building-tests-for-new-discourse-api-endpoints/118639 "2019-05-24T22:21:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [02.Октябрь.2019 01:25:15 UTC](https://meta.discourse.org/t/building-tests-for-new-discourse-api-endpoints/118639/10 "2019-10-02T01:25:15Z")

</div>

Выглядит хорошо. Давайте обновим пример вспомогательного файла, добавив значения по умолчанию, чтобы он работал без файла yml. Затем обновите файл README инструкциями по копированию примера файла yml в examples/config.yml. И обязательно добавьте examples/config.yml в .gitignore.

Это довольно стандартная практика, чтобы избежать случайного коммита файла config.yml с учётными данными для продакшена. Кроме того, вы сможете редактировать этот файл, и git не будет считать это изменением.

---

_[View the full topic](https://meta.discourse.org/t/building-tests-for-new-discourse-api-endpoints/118639)._
