|
7 | 7 |
|
8 | 8 | import subprocess |
9 | 9 |
|
10 | | -import blindspin |
11 | 10 | import requests |
12 | 11 |
|
13 | 12 | from testcontainers.core.waiting_utils import wait_container_is_ready |
@@ -81,28 +80,25 @@ def docker_compose_command(self): |
81 | 80 | return docker_compose_cmd |
82 | 81 |
|
83 | 82 | def start(self): |
84 | | - with blindspin.spinner(): |
85 | | - if self.pull: |
86 | | - pull_cmd = self.docker_compose_command() + ['pull'] |
87 | | - subprocess.call(pull_cmd, cwd=self.filepath) |
88 | | - up_cmd = self.docker_compose_command() + ['up', '-d'] |
89 | | - subprocess.call(up_cmd, cwd=self.filepath) |
| 83 | + if self.pull: |
| 84 | + pull_cmd = self.docker_compose_command() + ['pull'] |
| 85 | + subprocess.call(pull_cmd, cwd=self.filepath) |
| 86 | + up_cmd = self.docker_compose_command() + ['up', '-d'] |
| 87 | + subprocess.call(up_cmd, cwd=self.filepath) |
90 | 88 |
|
91 | 89 | def stop(self): |
92 | | - with blindspin.spinner(): |
93 | | - down_cmd = self.docker_compose_command() + ['down', '-v'] |
94 | | - subprocess.call(down_cmd, cwd=self.filepath) |
| 90 | + down_cmd = self.docker_compose_command() + ['down', '-v'] |
| 91 | + subprocess.call(down_cmd, cwd=self.filepath) |
95 | 92 |
|
96 | 93 | def get_logs(self): |
97 | 94 | logs_cmd = self.docker_compose_command() + ["logs"] |
98 | | - with blindspin.spinner(): |
99 | | - result = subprocess.run( |
100 | | - logs_cmd, |
101 | | - cwd=self.filepath, |
102 | | - stdout=subprocess.PIPE, |
103 | | - stderr=subprocess.PIPE, |
104 | | - ) |
105 | | - return result.stdout, result.stderr |
| 95 | + result = subprocess.run( |
| 96 | + logs_cmd, |
| 97 | + cwd=self.filepath, |
| 98 | + stdout=subprocess.PIPE, |
| 99 | + stderr=subprocess.PIPE, |
| 100 | + ) |
| 101 | + return result.stdout, result.stderr |
106 | 102 |
|
107 | 103 | def get_service_port(self, service_name, port): |
108 | 104 | return self._get_service_info(service_name, port)[1] |
|
0 commit comments