
"""Test CLI interface."""

import os

from .fixtures import record
assert record


def run(cmd):
    """Helper to test running a CLI command."""
    os.system('python -m billabong ' + cmd)


def test_cli(record):
    """Test main supported CLI commands."""
    ID = record['id']

    run('ls')
    run('blobs')
    run('info ' + ID)
    run('search txt')
    run('check')
    run('push')
    run('pull')
    run('echo ' + ID)
    run('status')
    run('version')


"""Test CLI interface."""

import os

from .fixtures import record
assert record


def run(cmd):
    """Helper to test running a CLI command."""
    os.system('python -m billabong ' + cmd)


def test_cli(record):
    """Test main supported CLI commands."""
    ID = record['id']

    run('ls')
    run('records')
    run('blobs')
    run('info ' + ID)
    run('info ' + ID + ' --no-color')
    run('search txt')
    run('check')
    run('push')
    run('pull')
    run('echo ' + ID)
    run('status')
    run('version')

    run('add hello.txt')

Add test for cli 'add' command
Add test for cli 'add' command

  
  """Test CLI interface."""
  
  import os
  
  from .fixtures import record
  assert record
  
  
  def run(cmd):
      """Helper to test running a CLI command."""
      os.system('python -m billabong ' + cmd)
  
  
  def test_cli(record):
      """Test main supported CLI commands."""
      ID = record['id']
  
      run('ls')
+     run('records')
      run('blobs')
      run('info ' + ID)
+     run('info ' + ID + ' --no-color')
      run('search txt')
      run('check')
      run('push')
      run('pull')
      run('echo ' + ID)
      run('status')
      run('version')
  
+     run('add hello.txt')
+ 
Add test for cli 'add' command
## Code Before:

"""Test CLI interface."""

import os

from .fixtures import record
assert record


def run(cmd):
    """Helper to test running a CLI command."""
    os.system('python -m billabong ' + cmd)


def test_cli(record):
    """Test main supported CLI commands."""
    ID = record['id']

    run('ls')
    run('blobs')
    run('info ' + ID)
    run('search txt')
    run('check')
    run('push')
    run('pull')
    run('echo ' + ID)
    run('status')
    run('version')

## Instruction:
Add test for cli 'add' command
## Code After:

"""Test CLI interface."""

import os

from .fixtures import record
assert record


def run(cmd):
    """Helper to test running a CLI command."""
    os.system('python -m billabong ' + cmd)


def test_cli(record):
    """Test main supported CLI commands."""
    ID = record['id']

    run('ls')
    run('records')
    run('blobs')
    run('info ' + ID)
    run('info ' + ID + ' --no-color')
    run('search txt')
    run('check')
    run('push')
    run('pull')
    run('echo ' + ID)
    run('status')
    run('version')

    run('add hello.txt')
