Пытался ввести на (Телефоне) 127.0.0.1:8000 но - Can't establish a connection with site.
... runserver 0.0.0.0:8000
http://192.168.xxx.yyy:8000
если никакой файерволл дополнительно его не блокирует
CA certificates
If you are going to require validation of the other side of the connection’s certificate, you need to provide a “CA certs” file, filled with the certificate chains for each issuer you are willing to trust. Again, this file just contains these chains concatenated together. For validation, Python will use the first chain it finds in the file which matches. The platform’s certificates file can be used by calling SSLContext.load_default_certs(), this is done automatically with create_default_context().
SSLContext.load_default_certs(purpose=Purpose.SERVER_AUTH)¶
Load a set of default “certification authority” (CA) certificates from default locations. On Windows it loads CA certs from the CA and ROOT system stores. On other systems it calls SSLContext.set_default_verify_paths(). In the future the method may load CA certificates from other locations, too.
The purpose flag specifies what kind of CA certificates are loaded. The default settings Purpose.SERVER_AUTH loads certificates, that are flagged and trusted for TLS web server authentication (client side sockets). Purpose.CLIENT_AUTH loads CA certificates for client certificate verification on the server side.
@patch('asteroid.Asteroid.get_data' , mocked_get_data)
Почему
a = Asteroid(32241432)
Выполняется спокойно
def __init__(self,spk_id):
self.api_url = self.BASE_API_URL.format(spk_id)
а вот a.name выводи список из ConnectionError ,