小编Sar*_*lis的帖子

MacOS Sierra 上的 IPV6 网络共享

我一直在尝试遵循提供的指南来测试 IPV6 thethering,但我在 MacOS Sierra 上找不到 NAT64 的复选框。这是苹果指南中的图片:

在此输入图像描述

这与 MacOS Sierra 上的共享设置窗口相同:

在此输入图像描述

有没有其他方法可以在没有复选框的情况下设置 NAT64 网络?

ipv6 macos-sierra

1
推荐指数
1
解决办法
629
查看次数

行为:访问步骤定义之外的 context.config 变量

我无法找到一种方法如何使用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)

python python-2.7 python-behave

1
推荐指数
1
解决办法
5689
查看次数

标签 统计

ipv6 ×1

macos-sierra ×1

python ×1

python-2.7 ×1

python-behave ×1