我一直在尝试遵循提供的指南来测试 IPV6 thethering,但我在 MacOS Sierra 上找不到 NAT64 的复选框。这是苹果指南中的图片:
这与 MacOS Sierra 上的共享设置窗口相同:
有没有其他方法可以在没有复选框的情况下设置 NAT64 网络?
我无法找到一种方法如何使用beeve.iniApiClient的值来初始化我的context.config.userdata['url']
行为.ini
[behave.userdata]
url=http://some.url
Run Code Online (Sandbox Code Playgroud)
步骤.py
from behave import *
from client.api_client import ApiClient
# This is where i want to pass the config.userdata['url'] value
api_calls = ApiClient('???')
@given('I am logged as "{user}" "{password}"')
def login(context, user, password):
context.auth_header = api_calls.auth(user, password)
Run Code Online (Sandbox Code Playgroud)
api_client.py
class ApiClient(object):
def __init__(self, url):
self.url = url
def auth(self, email, password):
auth_payload = {'email': email, 'password': password}
auth_response = requests.post(self.url + '/api/auth/session', auth_payload)
return auth_response.text
Run Code Online (Sandbox Code Playgroud)