Microservice Patterns and Best Practices
上QQ阅读APP看书,第一时间看更新

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:"

Warnings or important notes appear like this.
Tips and tricks appear like this.