- Microservice Patterns and Best Practices
- Vinicius Feitosa Pacheco
- 175字
- 2021-06-30 19:02:46
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The config.py file is where the settings for each development environment exist."
A block of code is set as follows:
class TestDevelopmentConfig(TestCase):
def create_app(self):
app.config.from_object('config.DevelopmentConfig')
return app
def test_app_is_development(self):
self.assertTrue(app.config['DEBUG'] is True)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@patch('views.rpc_command')
def test_sucess(self, rpc_command_mock):
"""Test to insert a News."""
Any command-line input or output is written as follows:
$ docker-compose -f docker-compose.yml up --build –d
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "The following screenshot represents the interface of DATADOG:"